summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-01 06:25:21 +0000
committerFangrui Song <maskray@google.com>2019-05-01 06:25:21 +0000
commit0b8bef12e6ee55bdaca380fdc22821e4bcd9a267 (patch)
treee623be715f848f35999c6eab698e964af42b478d
parent22b412f45cc2a6f03b33e1ed59d2ee4a65a8be4a (diff)
downloadcompiler-rt-0b8bef12e6ee55bdaca380fdc22821e4bcd9a267.tar.gz
Use __extension__ to suppress __EH_FRAME_LIST__ warnings
gcc -pedantic => warning: ISO C forbids empty initializer braces clang -pedantic => -Wzero-length-array + -Wgnu-empty-initializer git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359655 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/crt/crtbegin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crt/crtbegin.c b/lib/crt/crtbegin.c
index 796094f65..523ff6fe3 100644
--- a/lib/crt/crtbegin.c
+++ b/lib/crt/crtbegin.c
@@ -10,7 +10,7 @@
__attribute__((visibility("hidden"))) void *__dso_handle = &__dso_handle;
-static void *__EH_FRAME_LIST__[]
+__extension__ static void *__EH_FRAME_LIST__[]
__attribute__((section(".eh_frame"), aligned(sizeof(void *)))) = {};
extern void __register_frame_info(const void *, void *) __attribute__((weak));