fixup/test compiler warnings

This commit is contained in:
graham sanderson
2021-05-24 12:17:14 -05:00
committed by Graham Sanderson
parent 4f64f3af80
commit 7e4e3290d5
10 changed files with 23 additions and 8 deletions

View File

@@ -19,6 +19,12 @@ add_subdirectory(blink)
# Add hello world example
add_subdirectory(hello_world)
add_compile_options(-Wall
-Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int
-Wno-unused-function # we have some for the docs that aren't called
-Wno-maybe-uninitialized
)
# Hardware-specific examples in subdirectories:
add_subdirectory(adc)
add_subdirectory(clocks)