summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-07-16 12:58:54 +0100
committerRichard Jones <rjones@redhat.com>2010-07-16 15:23:27 +0100
commit321ca1ef91a90cec5b94058b84420e8018e3f1d8 (patch)
treec943964a59c946df961a91bc05bf7de970c7e8f8 /configure.ac
parentaac51942aab63a9355ad6724345ea923148bf2a9 (diff)
downloadlibguestfs-321ca1ef91a90cec5b94058b84420e8018e3f1d8.tar.gz
libguestfs-321ca1ef91a90cec5b94058b84420e8018e3f1d8.tar.xz
libguestfs-321ca1ef91a90cec5b94058b84420e8018e3f1d8.zip
Use an unsigned type (size_t) for all loop iterators.
This resolves a warning from gcc 4.5: assuming signed overflow does not occur when simplifying conditional to constant This page explains the issues in some detail: http://www.airs.com/blog/archives/120
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 0 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index caf25ee8..671fbb0e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,6 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wmissing-format-attribute" # daemon.h's asprintf_nowarn
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
nw="$nw -Wpacked" # Allow attribute((packed)) on structs