summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/cxx-general
diff options
context:
space:
mode:
authorhdftest <hdftest@hdfgroup.org>2020-04-27 13:09:20 (GMT)
committerhdftest <hdftest@hdfgroup.org>2020-04-27 13:09:20 (GMT)
commitbf5029051ccfb4184903b4e12f87695beb806986 (patch)
treee13a7d4747ed1f50e74e543fbbbd69aad5802bd5 /config/gnu-warnings/cxx-general
parent60778cb623315d98b911938df3e503f9902668b5 (diff)
parent8a4905b9d329b582b04d1cc2705d9e367f4dd20b (diff)
downloadhdf5-bf5029051ccfb4184903b4e12f87695beb806986.zip
hdf5-bf5029051ccfb4184903b4e12f87695beb806986.tar.gz
hdf5-bf5029051ccfb4184903b4e12f87695beb806986.tar.bz2
Merge pull request #2528 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_12 to hdf5_1_12
* commit '8a4905b9d329b582b04d1cc2705d9e367f4dd20b': Restrict errors to gcc 4.8 and above. Merge pull request #2537 in HDFFV/hdf5 from ~DYOUNG/werror:fix-werrors to develop Fix NoFilter build TRILAB-244 separate CXX warnings and errors from C Don't add general warnings flags for unsupported old versions of gcc and g++ (older than gcc/g++ 4.2). Correct gnu-cxxflags to determine warnings flags to be added based on C++ compiler version instead of C compiler version.
Diffstat (limited to 'config/gnu-warnings/cxx-general')
-rw-r--r--config/gnu-warnings/cxx-general16
1 files changed, 14 insertions, 2 deletions
diff --git a/config/gnu-warnings/cxx-general b/config/gnu-warnings/cxx-general
index ee7ee22..9548cc0 100644
--- a/config/gnu-warnings/cxx-general
+++ b/config/gnu-warnings/cxx-general
@@ -6,14 +6,26 @@
# NOTE: Don't add -Wpadded here since we can't/won't fix the (many)
# warnings that are emitted. If you need it, add it from the
# environment variable at configure time.
--Wabi
+-Wall
+-Wcast-qual
+-Wconversion
-Wctor-dtor-privacy
-Weffc++
-##-Wendif-labels
+-Wextra
+-Wfloat-equal
+-Wformat=2
+-Winit-self
+-Winvalid-pch
+-Wmissing-include-dirs
+-Wno-format-nonliteral
-Wnon-virtual-dtor
-Wold-style-cast
-Woverloaded-virtual
-Wreorder
+-Wshadow
-Wsign-promo
##-Wunreachable-code
+-Wundef
##-Wvariadic-macros
+-Wwrite-strings
+-pedantic