From f3dd0fe388842a7cb35266b4b0b79cfb4ef930c4 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 23 Sep 2025 15:46:28 -0500 Subject: [PATCH] Suppress some build warnings --- Source/ThirdParty/libsysprof-capture/CMakeLists.txt | 1 + Source/cmake/WebKitCompilerFlags.cmake | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Source/ThirdParty/libsysprof-capture/CMakeLists.txt b/Source/ThirdParty/libsysprof-capture/CMakeLists.txt index 7ea8f0469ad7..13a9e390643a 100644 --- a/Source/ThirdParty/libsysprof-capture/CMakeLists.txt +++ b/Source/ThirdParty/libsysprof-capture/CMakeLists.txt @@ -46,6 +46,7 @@ target_link_libraries(SysProfCapture WEBKIT_ADD_TARGET_C_FLAGS(SysProfCapture -Wno-implicit-function-declaration + -Wno-int-conversion -Wno-sign-compare -Wno-unused-parameter ) diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake index 77a292fb8b15..f6648c39c4e0 100644 --- a/Source/cmake/WebKitCompilerFlags.cmake +++ b/Source/cmake/WebKitCompilerFlags.cmake @@ -129,11 +129,6 @@ if (DEVELOPER_MODE AND DEVELOPER_MODE_FATAL_WARNINGS) else () set(FATAL_WARNINGS_FLAG -Werror) endif () - - check_cxx_compiler_flag(${FATAL_WARNINGS_FLAG} CXX_COMPILER_SUPPORTS_WERROR) - if (CXX_COMPILER_SUPPORTS_WERROR) - set(DEVELOPER_MODE_CXX_FLAGS ${FATAL_WARNINGS_FLAG}) - endif () endif () if (DEVELOPER_MODE OR ARM) @@ -186,8 +181,7 @@ if (COMPILER_IS_GCC_OR_CLANG) -Wno-misleading-indentation -Wno-psabi) - # GCC < 12.0 gives false warnings for mismatched-new-delete - if ((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0.0")) + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-mismatched-new-delete) WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-uninitialized) endif () -- 2.51.0