diff options
Diffstat (limited to 'config/clang-warnings/general')
-rw-r--r-- | config/clang-warnings/general | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/clang-warnings/general b/config/clang-warnings/general new file mode 100644 index 0000000..433dff9 --- /dev/null +++ b/config/clang-warnings/general @@ -0,0 +1,20 @@ +# general clang warnings flags +-Wall +-Warray-bounds +-Wcast-qual +-Wconversion +-Wdouble-promotion +-Wextra +-Wformat=2 +-Wframe-larger-than=16384 +-Wimplicit-fallthrough +-Wnull-dereference +-Wunused-const-variable +-Wwrite-strings +-Wpedantic +-Wvolatile-register-var +# 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 |