From 34ecf2cba93f45b405e8cc7252750ad2884de219 Mon Sep 17 00:00:00 2001 From: Boquan Fang Date: Mon, 26 Aug 2024 23:43:11 +0000 Subject: [PATCH] fix: enable -Wcast-qual flag for libcrypto=awslc * Remove the condition which only add -Wcast-qual back for non AWS-lc Libcrypto. --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ad6aea68d6..d9158de5a5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,10 +209,7 @@ endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") -if (NOT $ENV{S2N_LIBCRYPTO} MATCHES "awslc") - # add cast-qual back in for non AWS-LC - target_compile_options(${PROJECT_NAME} PRIVATE -Wcast-qual) -endif() +target_compile_options(${PROJECT_NAME} PRIVATE -Wcast-qual) if (COVERAGE) # https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html