Skip to content

Commit 9fd9aac

Browse files
committed
Enabled previously disabled -Wno-unused-parameter and -Wno-cast-function-type warnings
1 parent f427e49 commit 9fd9aac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmake/configure.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ if(UNIX)
4242
set(COMMON_COMPILER_FLAGS
4343
"${COMMON_COMPILER_FLAGS} \
4444
-Wall -Wextra \
45-
-Wno-unused-parameter \
46-
-Wno-cast-function-type \
4745
-Wsign-compare")
4846
if(NOT APPLE)
4947
set(COMMON_COMPILER_FLAGS
@@ -67,7 +65,7 @@ if(UNIX)
6765
if("${ENABLE_ADDRESS_SANITIZER}"
6866
OR "${ENABLE_UB_SANITIZER}"
6967
OR "${ENABLE_LEAK_SANITIZER}")
70-
set(COMMON_COMPILER_FLAGS "${COMMON_COMPILER_FLAGS} -Wno-cast-align")
68+
set(COMMON_COMPILER_FLAGS "${COMMON_COMPILER_FLAGS} -Wno-cast-align -Wno-cast-function-type")
7169
endif()
7270

7371
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_COMPILER_FLAGS}")

0 commit comments

Comments
 (0)