summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/cxx-error-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-error-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-error-general')
-rw-r--r--config/gnu-warnings/cxx-error-general32
1 files changed, 32 insertions, 0 deletions
diff --git a/config/gnu-warnings/cxx-error-general b/config/gnu-warnings/cxx-error-general
new file mode 100644
index 0000000..85cd9a3
--- /dev/null
+++ b/config/gnu-warnings/cxx-error-general
@@ -0,0 +1,32 @@
+#
+# HDF5 code should not trigger the following warnings under any
+# circumstances, so ask the compiler to treat them as errors:
+#
+# NOTE: c++/test files are not compatible with these warnings as errors
+# c++/test/tcompound.cpp
+# -Werror=cast-align
+-Wcast-align
+# NOTE: c++/src files are not compatible with these warnings as errors
+# c++/src/H5Object.cpp
+# -Werror=missing-declarations
+-Wmissing-declarations
+-Werror=packed
+-Werror=redundant-decls
+-Werror=switch
+# NOTE: c++/test files are not compatible with these warnings as errors
+# c++/test/tattr.cpp
+# -Werror=unused-but-set-variable
+-Wunused-but-set-variable
+-Werror=unused-function
+-Werror=unused-variable
+# NOTE: c++/src files are not compatible with these warnings as errors
+# c++/src/H5Object.cpp,c++/src/H5StrType.cpp,c++/src/H5PredType.cpp
+# -Werror=unused-parameter
+-Wunused-parameter
+#
+# Other files not compatible
+# NOTE: c++/test files are not compatible with these warnings as errors
+# c++/test/titerate.cpp,c++/test/tarray.cpp
+# -Werror=missing-declarations
+# c++/test/titerate.cpp,c++/test/tarray.cpp,c++/test/tlinks.cpp,c++/test/ttypes.cpp,c++/test/dsets.cpp
+# -Werror=unused-parameter