Skip to content

Commit bcb3f28

Browse files
boquan-fangBoquan Fangjmayclin
authored
fix: enable -Wcast-qual flag for libcrypto=awslc (#4735)
Co-authored-by: Boquan Fang <[email protected]> Co-authored-by: James Mayclin <[email protected]>
1 parent fde9bf3 commit bcb3f28

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
135135
-std=gnu99
136136
-Wall
137137
-Wcast-align
138+
-Wcast-qual
138139
-Wchar-subscripts
139140
-Wcomment
140141
-Wformat-security
@@ -232,11 +233,6 @@ endif()
232233

233234
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
234235

235-
if (NOT $ENV{S2N_LIBCRYPTO} MATCHES "awslc")
236-
# add cast-qual back in for non AWS-LC
237-
target_compile_options(${PROJECT_NAME} PRIVATE -Wcast-qual)
238-
endif()
239-
240236
if (COVERAGE)
241237
# https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html
242238
# Coverage is done using LLVM source based coverage. This is only supported

0 commit comments

Comments
 (0)