Skip to content

Commit 7b9205d

Browse files
committed
[arm] Enable more warnings
It should be more in line with Arm Core Platform and TFLite Micro builds.
1 parent c62e0a2 commit 7b9205d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,26 @@ endif()
9292

9393
add_link_options(LINKER:--nmagic,--gc-sections)
9494

95-
# Compilation warnings
95+
# Compilation warnings - based on educated guesses, and whatever is working.
9696
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
100112
-Wno-psabi
113+
-Wno-unused-parameter
114+
-Wstrict-aliasing
115+
-Wswitch
116+
-Wunused
101117
)

0 commit comments

Comments
 (0)