diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-08-04 20:34:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-08-04 20:34:00 +0200 |
commit | 58c2a296d9378f246f58b5abb2ec75d70ae2be78 (patch) | |
tree | 32776d58fd1e027a271b5aaaceca6d8358ea1c43 /m4 | |
parent | 97ba16c1e12111c63fd1d38814dcc46eb9affc28 (diff) |
New upstream version 1.1.1
Diffstat (limited to 'm4')
-rw-r--r-- | m4/virt-compile-warnings.m4 | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4 index ce4e24492..8731b7073 100644 --- a/m4/virt-compile-warnings.m4 +++ b/m4/virt-compile-warnings.m4 @@ -60,18 +60,6 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ # gcc 4.4.6 complains this is C++ only; gcc 4.7.0 implies this from -Wall dontwarn="$dontwarn -Wenum-compare" - # clang rather horribly ignores unknown warning flags by - # default. Thus to get gl_WARN_ADD to reliably detect - # flags, we need to set '-Werror -Wunknown-warning-option' - # in CFLAGS while probing support - WARN_CFLAGS= - orig_CFLAGS="$CFLAGS" - gl_WARN_ADD([-Wunknown-warning-option]) - if test -n "$WARN_CFLAGS" ; then - WARN_CFLAGS= - CFLAGS="-Werror -Wunknown-warning-option $CFLAGS" - fi - # gcc 4.2 treats attribute(format) as an implicit attribute(nonnull), # which triggers spurious warnings for our usage AC_CACHE_CHECK([whether gcc -Wformat allows NULL strings], @@ -244,7 +232,4 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ AC_DEFINE_UNQUOTED([BROKEN_GCC_WLOGICALOP], 1, [Define to 1 if gcc -Wlogical-op reports false positives on strchr]) fi - - # Remove stuff we set for clang - CFLAGS="$orig_CFLAGS" ]) |