mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 08:52:59 +08:00
[CMAKE] Use remove_target_compile_option when disabling manually enabled warnings
This commit is contained in:
@@ -20,5 +20,5 @@ add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
target_compile_options(wordpad PRIVATE /wd4477)
|
||||
remove_target_compile_option(wordpad "/we4477")
|
||||
endif()
|
||||
|
||||
@@ -50,7 +50,7 @@ add_executable(nfsd ${SOURCE} nfsd.rc)
|
||||
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
target_compile_options(nfsd PRIVATE "/wd4477")
|
||||
remove_target_compile_option(nfsd "/we4477")
|
||||
else()
|
||||
# FIXME: Tons of warnings.
|
||||
target_compile_options(nfsd PRIVATE "-w")
|
||||
|
||||
Reference in New Issue
Block a user