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

llvm-svn: 359655
This commit is contained in:
Fangrui Song 2019-05-01 06:25:21 +00:00
parent dbe1c4aa6f
commit 99055b9c38
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
__attribute__((visibility("hidden"))) void *__dso_handle = &__dso_handle; __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 *)))) = {}; __attribute__((section(".eh_frame"), aligned(sizeof(void *)))) = {};
extern void __register_frame_info(const void *, void *) __attribute__((weak)); extern void __register_frame_info(const void *, void *) __attribute__((weak));