Kaydet (Commit) d596053e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unnecessary -wdXXXX

...that no longer trigger any warnings with the current code base under MSVC
2013 and beyond

Change-Id: I14cad441518134f7c4321fdd132e0ff049d3b1b9
Reviewed-on: https://gerrit.libreoffice.org/31495Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 9f898666
...@@ -87,9 +87,6 @@ gb_AFLAGS := $(AFLAGS) ...@@ -87,9 +87,6 @@ gb_AFLAGS := $(AFLAGS)
# C4201: nonstandard extension used : nameless struct/union # C4201: nonstandard extension used : nameless struct/union
# C4242: 'identifier' : conversion from 'type1' to 'type2', possible
# loss of data
# C4244: nonstandard extension used : formal parameter 'identifier' # C4244: nonstandard extension used : formal parameter 'identifier'
# was previously defined as a type # was previously defined as a type
...@@ -108,8 +105,7 @@ gb_AFLAGS := $(AFLAGS) ...@@ -108,8 +105,7 @@ gb_AFLAGS := $(AFLAGS)
# C4351: new behavior: elements of array 'array' will be default # C4351: new behavior: elements of array 'array' will be default
# initialized # initialized
# (an issue with MSVC 2013 that appears to be gone with MSVC 2015)
# C4355: 'this' : used in base member initializer list
# C4373: '%$S': virtual function overrides '%$pS', previous versions # C4373: '%$S': virtual function overrides '%$pS', previous versions
# of the compiler did not override when parameters only differed by # of the compiler did not override when parameters only differed by
...@@ -117,22 +113,14 @@ gb_AFLAGS := $(AFLAGS) ...@@ -117,22 +113,14 @@ gb_AFLAGS := $(AFLAGS)
# [translation: ancient compilers that don't actually support C++ do # [translation: ancient compilers that don't actually support C++ do
# stupid things] # stupid things]
# C4481: nonstandard extension used: override specifier 'override'
# (MSVC 2010 warns about this, even though it's C++11 keyword)
# C4505: 'function' : unreferenced local function has been removed # C4505: 'function' : unreferenced local function has been removed
# C4512: 'class' : assignment operator could not be generated # C4512: 'class' : assignment operator could not be generated
# (an issue with MSVC 2013 that appears to be gone with MSVC 2015)
# C4589: Constructor of abstract class 'Derived' ignores initializer for
# virtual base class 'Base' https://codereview.chromium.org/1234253003
# C4611: interaction between 'function' and C++ object destruction is # C4611: interaction between 'function' and C++ object destruction is
# non-portable # non-portable
# C4626: 'derived class' : assignment operator could not be generated
# because a base class assignment operator is inaccessible
# C4702: unreachable code # C4702: unreachable code
# C4706: assignment within conditional expression # C4706: assignment within conditional expression
...@@ -140,9 +128,6 @@ gb_AFLAGS := $(AFLAGS) ...@@ -140,9 +128,6 @@ gb_AFLAGS := $(AFLAGS)
# C4800: 'type' : forcing value to bool 'true' or 'false' (performance # C4800: 'type' : forcing value to bool 'true' or 'false' (performance
# warning) # warning)
# C4913: user defined binary operator ',' exists but no overload could
# convert all operands, default built-in binary operator ',' used
gb_CFLAGS := \ gb_CFLAGS := \
-Gd \ -Gd \
-GR \ -GR \
...@@ -156,14 +141,10 @@ gb_CFLAGS := \ ...@@ -156,14 +141,10 @@ gb_CFLAGS := \
-wd4127 \ -wd4127 \
$(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \ $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4200 \ -wd4200 \
-wd4242 \
-wd4244 \ -wd4244 \
-wd4251 \ -wd4251 \
-wd4355 \
-wd4505 \ -wd4505 \
-wd4512 \ -wd4512 \
-wd4589 \
-wd4626 \
-wd4706 \ -wd4706 \
-wd4800 \ -wd4800 \
...@@ -203,16 +184,12 @@ gb_CXXFLAGS := \ ...@@ -203,16 +184,12 @@ gb_CXXFLAGS := \
-wd4275 \ -wd4275 \
-wd4290 \ -wd4290 \
-wd4351 \ -wd4351 \
-wd4355 \
-wd4373 \ -wd4373 \
-wd4481 \
-wd4505 \ -wd4505 \
-wd4512 \ -wd4512 \
-wd4589 \
-wd4611 \ -wd4611 \
-wd4706 \ -wd4706 \
-wd4800 \ -wd4800 \
-wd4913 \
ifeq ($(CPUNAME),X86_64) ifeq ($(CPUNAME),X86_64)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment