Skip to content

Commit f097fe3

Browse files
committed
awslc.patch: extend
1 parent 9bddc9a commit f097fe3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

awslc.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@
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+
.

0 commit comments

Comments
 (0)