| 1 |
# general clang warnings flags |
| 2 |
-Wall |
| 3 |
-Warray-bounds |
| 4 |
-Wcast-qual |
| 5 |
-Wconversion |
| 6 |
-Wdouble-promotion |
| 7 |
-Wextra |
| 8 |
-Wformat=2 |
| 9 |
-Wframe-larger-than=16384 |
| 10 |
-Wimplicit-fallthrough |
| 11 |
# |
| 12 |
# NOTE: Due to the divergence in the C and C++, we're dropping support for |
| 13 |
# compiling the C library with a C++ compiler and dropping the -Wc++-compat |
| 14 |
# warning. |
| 15 |
# |
| 16 |
-Wno-c++-compat |
| 17 |
# |
| 18 |
# NOTE: Disable the -Wformat-nonliteral from -Wformat=2 here and re-add |
| 19 |
# it to the developer flags. |
| 20 |
# |
| 21 |
-Wno-format-nonliteral |
| 22 |
-Wnull-dereference |
| 23 |
-Wunused-const-variable |
| 24 |
-Wwrite-strings |
| 25 |
-Wpedantic |
| 26 |
-Wvolatile-register-var |