mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-07-28 14:57:50 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user