summaryrefslogtreecommitdiff
path: root/examples/example.cmake
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-27 11:50:17 +0700
committerhathach <[email protected]>2022-06-27 11:50:17 +0700
commitb9dc9dbd78ee1890342429502d585f323c480fc2 (patch)
tree922509c3012736c3b7b564c99d8c27ef77d60013 /examples/example.cmake
parent0042eccb3b2ff0f980f3a927a271364a2089ada5 (diff)
fix most warnings with rp2040 -wconversion
Diffstat (limited to 'examples/example.cmake')
-rw-r--r--examples/example.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/example.cmake b/examples/example.cmake
new file mode 100644
index 000000000..6bb82a56d
--- /dev/null
+++ b/examples/example.cmake
@@ -0,0 +1,25 @@
+target_compile_options(${PROJECT} PUBLIC
+ -Wall
+ -Wextra
+ -Werror
+ -Wfatal-errors
+ -Wdouble-promotion
+ #-Wstrict-prototypes
+ -Wstrict-overflow
+ #-Werror-implicit-function-declaration
+ -Wfloat-equal
+ #-Wundef
+ -Wshadow
+ -Wwrite-strings
+ -Wsign-compare
+ -Wmissing-format-attribute
+ -Wunreachable-code
+ -Wcast-align
+ -Wcast-function-type
+ -Wcast-qual
+ -Wnull-dereference
+ -Wuninitialized
+ -Wunused
+ -Wredundant-decls
+ -Wconversion
+ )