From ea0c4352f8912dcadac1c328901c51190084eb7b Mon Sep 17 00:00:00 2001 From: Greg Williams Date: Mon, 28 Jul 2014 10:09:12 -0400 Subject: [PATCH] Added pragma magic to disable warning about missing field initializers, since we are taking advantage of standard behavior to tell the comiler to initialize all CExceptionFrames struct fields in all frames to 0 --- lib/CException.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CException.c b/lib/CException.c index f316745..617d317 100644 --- a/lib/CException.c +++ b/lib/CException.c @@ -1,6 +1,9 @@ #include "CException.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" volatile CEXCEPTION_FRAME_T CExceptionFrames[CEXCEPTION_NUM_ID] = {{ 0 }}; +#pragma GCC diagnostic pop //------------------------------------------------------------------------------------------ // Throw