Skip to content

Commit f9da0c9

Browse files
committed
CMake: Shrink list of suppressed MSVC warnings to a single item
A few were obsolete, but most are already suppressed in the LLVM flags.
1 parent effce17 commit f9da0c9

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

CMakeLists.txt

+2-11
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,8 @@ elseif(MSVC)
190190
append("/GR- /EHs-c-" CMAKE_CXX_FLAGS)
191191
append("/D_HAS_EXCEPTIONS=0" CMAKE_CXX_FLAGS)
192192

193-
# warning C4018: signed/unsigned mismatch
194-
# warning C4101: unreferenced local variable
195-
# warning C4102: unreferenced label
196-
# warning C4146: unary minus operator applied to unsigned type, result still unsigned
197-
# warning C4201: nonstandard extension used: nameless struct/union
198-
# warnings C4244 and C4267: conversion from '...' to '...', possible loss of data
199-
# warnings C4456-4459: declaration of '...' hides ...
200-
# warning C4624: destructor was implicitly defined as deleted because a base class destructor is inaccessible or deleted
201-
# warning C4800: forcing value to bool 'true' or 'false' (performance warning)
202-
# warning C4996: we're not using Microsoft's secure stringOp_s() functions
203-
append("/wd4018 /wd4101 /wd4102 /wd4146 /wd4201 /wd4244 /wd4267 /wd4456 /wd4457 /wd4458 /wd4459 /wd4624 /wd4800 /wd4996" LDC_CXXFLAGS)
193+
# disable warning C4201: nonstandard extension used: nameless struct/union
194+
append("/wd4201" LDC_CXXFLAGS)
204195
endif()
205196
# Append -mminimal-toc for gcc 4.0.x - 4.5.x on ppc64
206197
if( CMAKE_COMPILER_IS_GNUCXX

0 commit comments

Comments
 (0)