Skip to content

Commit

Permalink
Reenable warnings as errors for Clang on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Dec 20, 2023
1 parent 24a6ff1 commit 2ba51f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/CompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ba51f6

Please sign in to comment.