Skip to content

Commit caec770

Browse files
authored
Disable -Wno-cast-function-type on non APPLE platforms (#562)
1 parent 70a8c16 commit caec770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/configure.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if(UNIX)
5151
-Wnull-dereference
5252
-Wformat=2
5353
-Wmissing-declarations
54-
-Wno-c11-extensions)
54+
-Wno-c11-extensions
55+
-Wno-cast-function-type)
5556
endif(NOT APPLE)
5657
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wold-style-definition>)
5758
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wmissing-prototypes>)

0 commit comments

Comments
 (0)