error_handling: another way of suppressing
This commit is contained in:
parent
54a38c9ad4
commit
5c1c896c01
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
// Ignore following (and similar) errors
|
// Ignore following (and similar) errors
|
||||||
// error: 'strncpy' output may be truncated copying 119 bytes from a string of length 119
|
// error: 'strncpy' output may be truncated copying 119 bytes from a string of length 119
|
||||||
#pragma GCC diagnostic push
|
_Pragma("GCC diagnostic push")
|
||||||
#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
_Pragma("GCC diagnostic ignored \"-Wstringop-truncation\"")
|
||||||
|
|
||||||
static critical_msg_t warningBuffer;
|
static critical_msg_t warningBuffer;
|
||||||
static critical_msg_t criticalErrorMessageBuffer;
|
static critical_msg_t criticalErrorMessageBuffer;
|
||||||
|
@ -443,4 +443,4 @@ void criticalErrorM(const char *msg) {
|
||||||
criticalError(msg);
|
criticalError(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
_Pragma("GCC diagnostic pop")
|
||||||
|
|
Loading…
Reference in New Issue