cmake: add -Wstrict-prototypes

Suggested-by: fenugrec <fenugrec@users.sourceforge.net>
Link: https://github.com/candle-usb/candleLight_fw/issues/103
Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
This commit is contained in:
Marc Kleine-Budde 2022-08-28 21:45:25 +02:00
parent c7547b0dcd
commit c19f3a17e1

View File

@ -6,6 +6,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_compile_options(
-std=gnu11 -mthumb
-Wall -Wextra -Werror
-Wstrict-prototypes
-fmessage-length=0
-fsigned-char
-ffunction-sections -fdata-sections