From 765b30d0f607c023faa784bec063cb26a3472596 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Tue, 7 Nov 2023 13:46:46 +0100 Subject: [PATCH] use GCC's built-in option `-pedantic-errors` for stricter linting --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4685642..65f456d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,18 +236,12 @@ set_target_properties(firmware PROPERTIES PREFIX "" SUFFIX ".elf") # # target_compile_options(firmware PRIVATE - -Wall - -Wextra - -Wpedantic + -Wall -Wextra -Wpedantic -pedantic-errors -Werror=return-type -Wdouble-promotion -Wmissing-declarations -Werror=float-conversion - $<$:-Werror=implicit-function-declaration> $<$:-Werror=strict-prototypes> - $<$:-Werror=incompatible-pointer-types> - $<$:-Werror=implicit-int> - $<$:-Werror=int-conversion> ) target_link_libraries(firmware PUBLIC