summaryrefslogtreecommitdiffstats
path: root/config/clang-warnings/general
blob: f0c9b9394574aa8df62d83a51ab690b19c8adca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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