mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-26 18:17:55 +00:00
libusb: add -Wall -Wextra
This commit is contained in:
parent
0f375d52f8
commit
a09eff8155
@ -10,10 +10,10 @@ SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
|
|||||||
# extra compiler warnings
|
# extra compiler warnings
|
||||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
|
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
|
||||||
# using 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")
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
||||||
# using GCC
|
# 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")
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel")
|
||||||
# using Intel C++
|
# using Intel C++
|
||||||
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
|
Loading…
Reference in New Issue
Block a user