summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-03-08 03:27:46 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-03-08 03:27:46 (GMT)
commitb18aaf39f0a9c530d570acf206710d2aa158953e (patch)
tree02894f28bf85295fe2c255e2ce292b8cf49751ed /config
parent2c36685010638e6bfcdd4ec74194cd200081668b (diff)
downloadhdf5-b18aaf39f0a9c530d570acf206710d2aa158953e.zip
hdf5-b18aaf39f0a9c530d570acf206710d2aa158953e.tar.gz
hdf5-b18aaf39f0a9c530d570acf206710d2aa158953e.tar.bz2
[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++
Diffstat (limited to 'config')
-rw-r--r--config/gnu-cxxflags67
1 files 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*)