summaryrefslogtreecommitdiffstats
path: root/config/clang-warnings
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-06-10 19:25:10 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-06-10 19:25:10 (GMT)
commit77efb340a1b06465587ca9dd4599271409a86a44 (patch)
treed3fcb6a99e212c5e7a3ce9beb40f83f19bc63ff4 /config/clang-warnings
parent32c353ed4360630646e0bfd40387aa7b4fd403ea (diff)
downloadhdf5-77efb340a1b06465587ca9dd4599271409a86a44.zip
hdf5-77efb340a1b06465587ca9dd4599271409a86a44.tar.gz
hdf5-77efb340a1b06465587ca9dd4599271409a86a44.tar.bz2
Make changes to CMake CompilerFlags.cmake files so extra flags are
loaded for non-GNU compilers.
Diffstat (limited to 'config/clang-warnings')
-rw-r--r--config/clang-warnings/developer-general1
-rw-r--r--config/clang-warnings/error-general12
2 files changed, 5 insertions, 8 deletions
diff --git a/config/clang-warnings/developer-general b/config/clang-warnings/developer-general
index aa8c32e..74d8404 100644
--- a/config/clang-warnings/developer-general
+++ b/config/clang-warnings/developer-general
@@ -1,3 +1,4 @@
-Wformat-nonliteral
-Wmissing-noreturn
+-Wsometimes-uninitialized
-Wswitch-enum
diff --git a/config/clang-warnings/error-general b/config/clang-warnings/error-general
index 558d740..883dff7 100644
--- a/config/clang-warnings/error-general
+++ b/config/clang-warnings/error-general
@@ -4,20 +4,16 @@
#
-Werror=bad-function-cast
-Werror=implicit-function-declaration
-#-Werror=incompatible-pointer-types
+-Werror=incompatible-pointer-types
-Werror=missing-declarations
-Werror=packed
-Werror=shadow
-#-Werror=sometimes-uninitialized
-Werror=switch
#
-#-Werror=discarded-qualifiers
+# NOTE: Following files are not compatible with incompatible-pointer-types as errors
+# src/H5Dchunk.c,src/H5Dint.c,src/H5Gint.c,src/H5HFcache.c,src/H5I.c,src/H5T.c
+-Wno-error=incompatible-pointer-types-discards-qualifiers
#
-# Note: For macos 10.12, etc
-# H5Dint.c,H5Dchunk.c,H5Gint.c
-# -Wincompatible-pointer-types-discards-qualifiers
-# # H5Dvirtual.c,H5SL.c
-# -Wsometimes-uninitialized
#
# NOTE: File Driver files are not compatible with these warnings as errors
# H5FDdirect.c,H5FDmpio.c,H5FDros3.c,