Ignore gcc-specific pragmas when using other compilers (issue #25)

This commit is contained in:
Mark VanderVoord
2024-03-08 17:00:23 -05:00
parent 18d020cec7
commit a4fe26cde5
+6
View File
@@ -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