Skip to content

Commit df01083

Browse files
committed
Visual Studio build files: Some cleanups
Replace /wd4530 with /EHsc, as that is the more proper CXXFlag to use for Visual Studio builds for C++ projects.
1 parent 95fb6ef commit df01083

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MSVC_NMake/config-msvc.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LIBSIGCPP_DEFINES = /DSIGC_BUILD /D_WINDLL
2323
SIGCPP_BASE_CFLAGS = \
2424
/Ivs$(VSVER)\$(CFG)\$(PLAT)\sigc \
2525
/I..\untracked /I.. /I..\untracked\MSVC_NMake /I. \
26-
/wd4530 /EHsc $(CFLAGS)
26+
/EHsc $(CFLAGS)
2727

2828
LIBSIGC_INT_SOURCES = $(sigc_sources_cc:/=\)
2929
LIBSIGC_INT_HDRS = $(sigc_public_h:/=\)

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ add_project_arguments(warning_flags, language: 'cpp')
170170
# MSVC: Ignore warnings that aren't really harmful, but make those
171171
# that should not be overlooked stand out.
172172
if is_msvc
173-
foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530']
173+
foreach wd : ['/FImsvc_recommended_pragmas.h', '/EHsc', '/wd4267']
174174
disabled_warning = cpp_compiler.get_supported_arguments(wd)
175175
add_project_arguments(disabled_warning, language: 'cpp')
176176
endforeach

0 commit comments

Comments
 (0)