build: Avoid warnings about unknown pragmas.

In commit 4bbbf03b8b we started to
ignore bogus GCC 11 warnings.  Unfortunately earlier versions of GCC
don't know about those pragmas so give warnings [hence errors in
developer builds] like:

tsk.c:75:32: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]

Turn off these warnings.

Updates: commit 4bbbf03b8b
(cherry picked from commit 812f837c97)
This commit is contained in:
Richard W.M. Jones
2021-01-12 10:23:11 +00:00
parent cb2ac63562
commit dbd1eaab6a

View File

@@ -108,6 +108,9 @@ gl_WARN_ADD([-Wformat-truncation=1])
dnl GCC 9 at level 2 gives apparently bogus errors when %.*s is used.
gl_WARN_ADD([-Wformat-overflow=1])
dnl GCC < 11 gives warnings when disabling GCC 11 warnings.
gl_WARN_ADD([-Wno-pragmas])
AC_SUBST([WARN_CFLAGS])
NO_SNV_CFLAGS=