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()
9292
9393add_link_options (LINKER:--nmagic,--gc-sections)
9494
95- # Compilation warnings
95+ # Compilation warnings - based on educated guesses, and whatever is working.
9696add_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+ # -Werror=shift-count-overflow
100+ # -Wextra
101+ # -Wnull-dereference
102+ # -Wredundant-decls
103+ # -Wshadow
104+ # -Wswitch-default
105+ -Wall
106+ -Werror
107+ -Wmissing-field-initializers
108+ -Wno-error=deprecated-declarations
109+ -Wno-format
110+ -Wno-maybe-uninitialized # default move constructor
111+ -Wno-missing-prototype
100112 -Wno-psabi
113+ -Wno-unused-parameter
114+ -Wstrict-aliasing
115+ -Wswitch
116+ -Wunused
101117)
You can’t perform that action at this time.
0 commit comments