fix most warnings with rp2040 -wconversion
This commit is contained in:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user