gcc < 5 does not know #pragma GCC diagnostic push

But it also does not know warning -Wformat-security.
This commit is contained in:
2025-11-10 17:15:11 +01:00
committed by mdavidsaver
parent 22347af170
commit ef2260f433

View File

@@ -57,7 +57,7 @@
else \
flags |= F_BADLNK
#ifdef __GNUC__
#if __GNUC__ >= 5 || defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wformat-security"
/* Intentionally passing non-const format string to epicsSnprintf() below.
@@ -322,7 +322,7 @@ static void doPrintf(printfRecord *prec)
prec->len = pval - prec->val;
}
#ifdef __GNUC__
#if __GNUC__ >= 5 || defined(__clang__)
# pragma GCC diagnostic pop
#endif