From 2ba51f6d2e82c08d438733c7f6ecc32bc019ebe9 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 19 Dec 2023 23:57:58 -0600 Subject: [PATCH] Reenable warnings as errors for Clang on Windows --- cmake/CompilerWarnings.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index bb95083d..56a342db 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -52,13 +52,9 @@ function(set_file_warnings) -Wold-style-cast # warn for c-style casts -Wpedantic # warn if non-standard C++ is used -Wno-deprecated-declarations # do not warning about deprecated declarations + -Wno-language-extension-token # ignore use of __int64 compiler extension ) - # Disable warnings as errors when using Clang on Windows to work around deprecation warnings in Windows APIs - if(SFML_OS_WINDOWS AND (SFML_COMPILER_CLANG OR SFML_COMPILER_CLANG_CL)) - set(WARNINGS_AS_ERRORS FALSE) - endif() - if(WARNINGS_AS_ERRORS) set(CLANG_AND_GCC_WARNINGS ${CLANG_AND_GCC_WARNINGS} -Werror) set(MSVC_WARNINGS ${MSVC_WARNINGS} /WX)