From a4fe26cde513264263f98385c34a03eec47191ad Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Fri, 8 Mar 2024 17:00:23 -0500 Subject: [PATCH] Ignore gcc-specific pragmas when using other compilers (issue #25) --- lib/CException.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/CException.c b/lib/CException.c index fdff8f4..33ed0c2 100644 --- a/lib/CException.c +++ b/lib/CException.c @@ -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