From: Richard Jones Date: Thu, 17 Sep 2009 13:39:42 +0000 (+0100) Subject: Disable -Wunsafe-loop-optimizations X-Git-Tag: 1.0.71~18 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=6c8a69c602643ae3102c263148a94559d6594381;p=libguestfs.git Disable -Wunsafe-loop-optimizations This warning indicates that GCC could not do a particular sort of loop optimization. It pops up randomly in certain forms of looping code, and seems safe to ignore. --- diff --git a/configure.ac b/configure.ac index b28f316..95ab51e 100644 --- a/configure.ac +++ b/configure.ac @@ -84,6 +84,8 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Winline" # daemon.h's asprintf_nowarn nw="$nw -Wshadow" # numerous, plus we're not unanimous # ?? -Wstrict-overflow + nw="$nw -Wunsafe-loop-optimizations" # just a warning that an optimization + # was not possible, safe to ignore gl_MANYWARN_ALL_GCC([ws]) gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])