mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-07-30 07:47:49 +00:00
Ignore gcc-specific pragmas when using other compilers (issue #25)
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#include "CException.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
volatile CEXCEPTION_FRAME_T CExceptionFrames[CEXCEPTION_NUM_ID] = {{ 0 }};
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------------------
|
||||
// Throw
|
||||
|
||||
Reference in New Issue
Block a user