error_handling: another way of suppressing

This commit is contained in:
Andrey Gusakov 2025-01-14 15:56:23 +03:00 committed by rusefillc
parent 54a38c9ad4
commit 5c1c896c01
1 changed files with 3 additions and 3 deletions

View File

@ -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")