summaryrefslogtreecommitdiffstats
path: root/config/clang-warnings/general
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-03-30 14:28:05 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-03-30 14:28:05 (GMT)
commitac32ce96a35d0d15bcda45779de43345da95959f (patch)
tree8a92efc089bbddb6206a9d6115d6be8dd062de30 /config/clang-warnings/general
parent490cb6f9cd724ef28529c8c80e73e9b5cbc5df4a (diff)
downloadhdf5-ac32ce96a35d0d15bcda45779de43345da95959f.zip
hdf5-ac32ce96a35d0d15bcda45779de43345da95959f.tar.gz
hdf5-ac32ce96a35d0d15bcda45779de43345da95959f.tar.bz2
TRILAB-192 merging warnings changes from develop
Diffstat (limited to 'config/clang-warnings/general')
-rw-r--r--config/clang-warnings/general26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/clang-warnings/general b/config/clang-warnings/general
new file mode 100644
index 0000000..f0c9b93
--- /dev/null
+++ b/config/clang-warnings/general
@@ -0,0 +1,26 @@
+# general clang warnings flags
+-Wall
+-Warray-bounds
+-Wcast-qual
+-Wconversion
+-Wdouble-promotion
+-Wextra
+-Wformat=2
+-Wframe-larger-than=16384
+-Wimplicit-fallthrough
+#
+# NOTE: Due to the divergence in the C and C++, we're dropping support for
+# compiling the C library with a C++ compiler and dropping the -Wc++-compat
+# warning.
+#
+-Wno-c++-compat
+#
+# NOTE: Disable the -Wformat-nonliteral from -Wformat=2 here and re-add
+# it to the developer flags.
+#
+-Wno-format-nonliteral
+-Wnull-dereference
+-Wunused-const-variable
+-Wwrite-strings
+-Wpedantic
+-Wvolatile-register-var