diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-03-27 22:10:38 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-03-27 22:10:53 (GMT) |
commit | 0da53027d995b7ea670394b13bbe09c95e90b73d (patch) | |
tree | 34eb9c93c1618c3f51df8a9d9663294b1c0d6c82 /config/clang-warnings/general | |
parent | c66ce89383773a6e8b9f02fa17fd0fb2698fbf14 (diff) | |
download | hdf5-0da53027d995b7ea670394b13bbe09c95e90b73d.zip hdf5-0da53027d995b7ea670394b13bbe09c95e90b73d.tar.gz hdf5-0da53027d995b7ea670394b13bbe09c95e90b73d.tar.bz2 |
TRILAB-192 add comparable clang flags
Diffstat (limited to 'config/clang-warnings/general')
-rw-r--r-- | config/clang-warnings/general | 26 |
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 |