summaryrefslogtreecommitdiff
path: root/warnings.cmake
blob: 722854220aece7f1c110ba6e28b34bbeef7b06f9 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
set(GETSUYOMI_WARNINGS
    -Werror
    -Wstack-usage=2048
    -Wno-long-long
    -Wno-error=long-long
    # -Wno-error=inline
    -Wno-error=mismatched-tags
    -Wall
    -Weffc++
    -pedantic
    -Wsizeof-pointer-memaccess
    -pedantic-errors
    -Wextra
    -Wpacked
    -Wshadow
    -Wvla
    -Wnull-dereference
    -Wuninitialized
    -Wstack-protector
    -Warray-bounds
    # -Wno-error=array-bounds
    -Woverlength-strings
    -Wwrite-strings
    -Wcast-qual
    -Wcast-align
    -Wdisabled-optimization
    -Wmissing-field-initializers
    -Wimport
    -Winit-self
    -Wno-inline
    -Wchar-subscripts
    -Wcomment
    -Wconversion
    -Wfloat-equal
    -Wformat
    -Wformat=2
    -Wformat-nonliteral
    -Wformat-security
    -Wformat-y2k
    -Wmissing-format-attribute
    -Wmissing-braces
    -Winvalid-pch
    -Wmissing-include-dirs
    -Wmissing-noreturn
    -Wparentheses
    -Wpointer-arith
    -Wredundant-decls
    -Wreturn-type
    -Wsequence-point
    -Wsign-compare
    -Wstrict-aliasing
    -Wstrict-aliasing=2
    -Wswitch
    -Wswitch-default
    -Wswitch-enum
    -Wtrigraphs
    -Wunknown-pragmas
    -Wunreachable-code
    -Wunused
    -Wunused-function
    -Wunused-label
    -Wunused-parameter
    -Wunused-value
    -Wunused-variable
    -Wvariadic-macros
    -Wvolatile-register-var
)