aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special/compiler_rt.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-20 18:35:31 -0400
committerGitHub <noreply@github.com>2020-08-20 18:35:31 -0400
commit9cfcd0c29677e11f76846b006757ff49e05e3d6f (patch)
tree285973ffaab76ee3ca831a9663f15be62c44d32b /lib/std/special/compiler_rt.zig
parent1ca49b92c650e9b8988a35983e202cdb9c7ba6e7 (diff)
parent717e2a365d9b5103f855668e4765cc154203a2bf (diff)
downloadzig-9cfcd0c29677e11f76846b006757ff49e05e3d6f.tar.gz
zig-9cfcd0c29677e11f76846b006757ff49e05e3d6f.zip
Merge pull request #6103 from Vexu/extern
Disallow extern variables with initializers.
Diffstat (limited to 'lib/std/special/compiler_rt.zig')
-rw-r--r--lib/std/special/compiler_rt.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/compiler_rt.zig b/lib/std/special/compiler_rt.zig
index 42db6b96bf..0e0f4a6be7 100644
--- a/lib/std/special/compiler_rt.zig
+++ b/lib/std/special/compiler_rt.zig
@@ -340,7 +340,7 @@ fn __stack_chk_fail() callconv(.C) noreturn {
@panic("stack smashing detected");
}
-extern var __stack_chk_guard: usize = blk: {
+var __stack_chk_guard: usize = blk: {
var buf = [1]u8{0} ** @sizeOf(usize);
buf[@sizeOf(usize) - 1] = 255;
buf[@sizeOf(usize) - 2] = '\n';