mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-28 12:35:36 +08:00
build: avoid new warnings from gcc 4.5.0 20090517
* configure.ac: Add an explicit -Wno-logical-op, now that not listing -Wlogical-op is insufficient.
This commit is contained in:
parent
9593a3d8e7
commit
2726826c72
@ -99,6 +99,11 @@ if test "$gl_gcc_warnings" = yes; then
|
|||||||
gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now
|
gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now
|
||||||
gl_WARN_ADD([-Wno-pointer-sign]) # Too many warnings for now
|
gl_WARN_ADD([-Wno-pointer-sign]) # Too many warnings for now
|
||||||
gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
|
gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
|
||||||
|
|
||||||
|
# In spite of excluding -Wlogical-op above, it is enabled, as of
|
||||||
|
# gcc 4.5.0 20090517, and it provokes warnings in cat.c, dd.c, truncate.c
|
||||||
|
gl_WARN_ADD([-Wno-logical-op])
|
||||||
|
|
||||||
gl_WARN_ADD([-fdiagnostics-show-option])
|
gl_WARN_ADD([-fdiagnostics-show-option])
|
||||||
|
|
||||||
AC_SUBST([WARN_CFLAGS])
|
AC_SUBST([WARN_CFLAGS])
|
||||||
|
Loading…
Reference in New Issue
Block a user