Ticket #449: nostrictaliaswith42.patch
File nostrictaliaswith42.patch, 708 bytes (added by , 15 years ago) |
---|
-
configure.ac
982 982 4.2) 983 983 dnl -Wstrict-overflow was new in GCC 4.2. Higher settings than 1 984 984 dnl have proved too noisy. 985 AM_CXXFLAGS="$AM_CXXFLAGS -Wshadow -Wstrict-overflow=1" ;; 985 dnl Also, there appears to be a compiler bug which is apparent with 986 dnl GCC 4.2 (but not 4.1 or 4.3) with -O2, which can be avoided by 987 dnl specifying -fno-strict-aliasing. 988 AM_CXXFLAGS="$AM_CXXFLAGS -Wshadow -Wstrict-overflow=1 -fno-strict-aliasing" ;; 986 989 *) 987 990 dnl -Wlogical-op and -Wmissing-declarations (for C++) were added in 988 991 dnl GCC 4.3.