Skip to content

Commit a4fe26c

Browse files
committed
Ignore gcc-specific pragmas when using other compilers (issue #25)
1 parent 18d020c commit a4fe26c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/CException.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#include "CException.h"
22

3+
#ifdef __GNUC__
34
#pragma GCC diagnostic push
45
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
6+
#endif
7+
58
volatile CEXCEPTION_FRAME_T CExceptionFrames[CEXCEPTION_NUM_ID] = {{ 0 }};
9+
10+
#ifdef __GNUC__
611
#pragma GCC diagnostic pop
12+
#endif
713

814
//------------------------------------------------------------------------------------------
915
// Throw

0 commit comments

Comments
 (0)