Skip to content

Commit

Permalink
Ignore gcc-specific pragmas when using other compilers (issue #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Mar 8, 2024
1 parent 18d020c commit a4fe26c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/CException.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a4fe26c

Please sign in to comment.