File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
examples/arm/ethos-u-setup Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,26 @@ endif()
92
92
93
93
add_link_options (LINKER:--nmagic,--gc-sections )
94
94
95
- # Compilation warnings
95
+ # Compilation warnings - based on educated guesses, and whatever is working.
96
96
add_compile_options (
97
- # -Wall -Wextra -Wcast-align -Wdouble-promotion -Wformat
98
- # -Wmissing-field-initializers -Wnull-dereference -Wredundant-decls -Wshadow
99
- # -Wswitch -Wswitch-default -Wunused -Wno-redundant-decls
97
+ # -Wcast-align
98
+ # -Wdouble-promotion
99
+ # -Wextra
100
+ # -Wnull-dereference
101
+ # -Wredundant-decls
102
+ # -Wshadow
103
+ # -Wswitch-default
104
+ -Wall
105
+ -Werror
106
+ -Werror=shift-count-overflow
107
+ -Wmissing-field-initializers
108
+ -Wno-error=deprecated-declarations
109
+ -Wno-format
110
+ -Wno-maybe-uninitialized # default move constructor
111
+ -Wno-missing-prototype
100
112
-Wno-psabi
113
+ -Wno-unused-parameter
114
+ -Wstrict-aliasing
115
+ -Wswitch
116
+ -Wunused
101
117
)
You can’t perform that action at this time.
0 commit comments