The latest mingw headers on Fedora 19 fail to build with gnulib
without an update.
Meanwhile, now that upstream gnulib has better handling of -W
probing for clang, we can drop some of our own solutions in
favor of upstream; thus this reverts commit c1634100, "Correctly
detect warning flags with clang".
* .gnulib: Update to latest, for mingw and clang.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
Pushing under the build-breaker rule.
* .gnulib a363f4e...f40e61e (41):
update from texinfo
ignore-value: port to gcc -pedantic
extern-inline: port to gcc -std=c89
doc: document extern-inline
doc: chatter less
fflush, fseeko: port to musl cross-compiles
msvc-inval: port to mingw-w64
getcwd-lgpl: port to Tru64
autoupdate
tests: port large-fd POSIX spawn tests to OS X
autoupdate
tests/nap.h: use an adaptive delay to avoid ctime update issues
sig2str: port to C++
docs: mention cygwin shortcoming in <sys/un.h>
vasnprintf: silence mingw compiler warning
c-ctype, regex, verify: port to gcc -std=c90 -pedantic
regex: adapt to locking regime instead of depending on pthread
getgroups: document portability issues
test-lchown, test-chown: also skip test if lchown/chown fails with EPERM
regex: fix dfa race in multithreaded uses
malloca: port to compilers that reject size-zero arrays
parse-datetime, tests: don't use "string" + int
argmatch: port to C++
argp: typo fix
autoupdate
manywarnings: update for GCC 4.8.0
spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
getaddrinfo-tests: port --enable-gcc-warnings to clang
thread: port --enable-gcc-warnings to clang
stdio: use __REDIRECT for fwrite, fwrite_unlocked
stdio: port --enable-gcc-warnings to clang
sig2str: port --enable-gcc-warnings to clang
obstack: port --enable-gcc-warnings to clang
memchr2: port --enable-gcc-warnings to clang
mbsstr: port --enable-gcc-warnings to clang
malloca: port --enable-gcc-warnings to clang
inttostr: port --enable-gcc-warnings to clang
warnings: port to clang
quotearg: do not read beyond end of buffer
lock: work around pthread recursive mutexes bug in Mac OS X 10.6
mkdir-p: remove assumptions about umask and mode
.gnulib | 2 +-
m4/virt-compile-warnings.m4 | 22 ----------------------
2 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/.gnulib b/.gnulib
index a363f4e..f40e61e 160000
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit a363f4ed4a0e69187c97686ac44502c49c7f4b3d
+Subproject commit f40e61ea0c4940b027aade7dd48948aa93f133a4
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
index ce4e244..c6794b7 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],
@@ -197,13 +185,6 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
dnl gl_WARN_ADD([-fstack-protector])
gl_WARN_ADD([-fstack-protector-all])
gl_WARN_ADD([--param=ssp-buffer-size=4])
- dnl Even though it supports it, clang complains about
- dnl use of --param=ssp-buffer-size=4 unless used with
- dnl the -c arg. It doesn't like it when used with args
- dnl that just link together .o files. Unfortunately
- dnl we can't avoid that with automake, so we must turn
- dnl off the following clang specific warning
- gl_WARN_ADD([-Wno-unused-command-line-argument])
;;
*-*-freebsd*)
dnl FreeBSD ships old gcc 4.2.1 which doesn't handle
@@ -244,7 +225,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"
])
--
1.8.1.4