From 0f375d52f8ea836b122ae307c95cd89fd8f7224e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 5 Dec 2024 15:12:28 +0100 Subject: [PATCH] posix-h4: add -Wall -Wextra --- port/posix-h4/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/posix-h4/CMakeLists.txt b/port/posix-h4/CMakeLists.txt index 8161d0057..938d51115 100644 --- a/port/posix-h4/CMakeLists.txt +++ b/port/posix-h4/CMakeLists.txt @@ -7,10 +7,10 @@ SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..) # extra compiler warnings if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*") # using Clang - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused-variable -Wswitch-default -Werror") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused-variable -Wswitch-default -Wall -Wextra -Werror") elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") # using GCC - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused-but-set-variable -Wunused-variable -Wswitch-default -Werror") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused-but-set-variable -Wunused-variable -Wswitch-default -Wall -Wextra -Werror") elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel") # using Intel C++ elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")