cygming-crtend.c: fix build warnings
libgcc/Changelog: * config/i386/cygming-crtend.c: Fix register_frame_ctor and register_frame_dtor warnings. Signed-off-by: Jonathan Yong <10walls@gmail.com>
This commit is contained in:
parent
85d77ac474
commit
0012f921b6
@ -56,7 +56,10 @@ static EH_FRAME_SECTION_CONST int __FRAME_END__[]
|
||||
extern void __gcc_register_frame (void);
|
||||
extern void __gcc_deregister_frame (void);
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
|
||||
static void register_frame_ctor (void) __attribute__ ((constructor (0)));
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void
|
||||
register_frame_ctor (void)
|
||||
@ -65,7 +68,10 @@ register_frame_ctor (void)
|
||||
}
|
||||
|
||||
#if !DEFAULT_USE_CXA_ATEXIT
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
|
||||
static void deregister_frame_dtor (void) __attribute__ ((destructor (0)));
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void
|
||||
deregister_frame_dtor (void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user