Make 0.2.0 branch build cleanly with --enable-gcc-warnings and gcc 4.3

svn:r14749
This commit is contained in:
Nick Mathewson 2008-05-27 20:01:07 +00:00
parent ef28919ff0
commit a868231584
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Changes in version 0.2.0.27-rc - 2008-05-??
o Minor features (build):
- Add support to detect Libevent versions in the 1.4.x series on mingw.
- Fix build on gcc 4.3 with --enable-gcc-warnings set.
Changes in version 0.2.0.26-rc - 2008-05-13

View File

@ -748,7 +748,8 @@ if test x$enable_gcc_warnings = xyes; then
# These warnings break gcc 4.0.2 and work on gcc 4.2
# XXXX020 Use -fstack-protector.
# XXXX020 See if any of these work with earlier versions.
CFLAGS="$CFLAGS -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=5"
CFLAGS="$CFLAGS -Waddress -Wmissing-noreturn -Wnormalized=id -Woverride-init -Wstrict-overflow=1"
# We used to use -Wstrict-overflow=5, but that breaks us heavily under 4.3.
fi
if test x$have_shorten64_flag = xyes ; then