File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 99 if (g_processprng_fn == NULL) {
1010 abort();
1111 }
12+ --- a/CMakeLists.txt
13+ +++ b/CMakeLists.txt
14+ @@ -404,8 +404,10 @@ if(GCC OR CLANG)
15+ endif()
16+ set(C_CXX_FLAGS "${C_CXX_FLAGS} -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings")
17+ .
18+ - if(GCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "8")
19+ + if((GCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "8") OR
20+ + (CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS "13"))
21+ # GCC 8.x added a warning called -Wcast-function-type to the -Wextra umbrella.
22+ + # Also suppress for all clang versions supporting this warning.
23+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-cast-function-type")
24+ endif()
25+ .
You can’t perform that action at this time.
0 commit comments