mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
build: Avoid warnings about unknown pragmas.
In commit4bbbf03b8bwe 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: commit4bbbf03b8b(cherry picked from commit812f837c97)
This commit is contained in:
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user