From b18aaf39f0a9c530d570acf206710d2aa158953e Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Mon, 7 Mar 2016 22:27:46 -0500 Subject: [svn-r29332] Removed -Wunreachable-code from the gnu C++ flags. This flag generates a large number of spurious warnings in our code so we've disabled it for now. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial w/ C++ --- config/gnu-cxxflags | 67 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/config/gnu-cxxflags b/config/gnu-cxxflags index befaa32..52f46dd 100644 --- a/config/gnu-cxxflags +++ b/config/gnu-cxxflags @@ -175,8 +175,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -243,8 +244,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc 3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -306,8 +308,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -365,8 +368,8 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - # (this warning was removed in gcc 4.5+) + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case @@ -424,8 +427,8 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - # (this warning was removed in gcc 4.5+) + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case @@ -480,8 +483,8 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - # (this warning was removed in gcc 4.5+) + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case @@ -533,8 +536,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -582,8 +586,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning appears to be reliable now... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -628,8 +633,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -668,8 +674,9 @@ case "$cxx_vendor-$cxx_version" in # in -Wall H5_CXXFLAGS="$H5_CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -705,8 +712,9 @@ case "$cxx_vendor-$cxx_version" in # usage in the library. #CXXFLAGS="$CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - #CXXFLAGS="$CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -739,8 +747,9 @@ case "$cxx_vendor-$cxx_version" in # usage in the library. #CXXFLAGS="$CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - #CXXFLAGS="$CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append warning flags from gcc-3.3* case H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -770,8 +779,9 @@ case "$cxx_vendor-$cxx_version" in # usage in the library. #CXXFLAGS="$CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - #CXXFLAGS="$CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" # Append more extra warning flags that only gcc3.3+ know about H5_CXXFLAGS="$H5_CXXFLAGS -Wendif-labels" @@ -795,8 +805,9 @@ case "$cxx_vendor-$cxx_version" in # usage in the library. #CXXFLAGS="$CXXFLAGS -Wformat=2" - # The "unreachable code" warning does not appear to be reliable yet... - #CXXFLAGS="$CXXFLAGS -Wunreachable-code" + # The "unreachable code" flag generates many spurious C++ warnings. + # We'll disable it for now. + #H5_CXXFLAGS="$H5_CXXFLAGS -Wunreachable-code" ;; g++-3*) -- cgit v0.12