From a09eff8155c43e354a37525a83e938daf1e68153 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 9 Dec 2024 14:57:27 +0100 Subject: [PATCH] libusb: add -Wall -Wextra --- port/libusb/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/libusb/CMakeLists.txt b/port/libusb/CMakeLists.txt index 96e652113..623685701 100644 --- a/port/libusb/CMakeLists.txt +++ b/port/libusb/CMakeLists.txt @@ -10,10 +10,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 -Werror=uninitialized") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused-variable -Wswitch-default -Wall -Wextra -Werror -Werror=uninitialized") 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")