From 1639457ee02541193c5e96c2aa8cbdb9bac8cfd7 Mon Sep 17 00:00:00 2001 From: Scott Wichser Date: Wed, 30 Jan 2019 20:05:45 -0600 Subject: [PATCH] Get rid of some outdated Visual C++ #pragma warning statements. --- MSVC/build/bzfs.vcxproj | 8 ++++---- MSVC/build/config.h | 2 -- MSVC/build/game.vcxproj | 8 ++++---- include/common.h | 4 ---- include/win32.h | 5 +---- src/common/KeyManager.cxx | 4 ---- src/common/StateDatabase.cxx | 4 ---- 7 files changed, 9 insertions(+), 26 deletions(-) diff --git a/MSVC/build/bzfs.vcxproj b/MSVC/build/bzfs.vcxproj index 05086b55b4..8ca794ce23 100644 --- a/MSVC/build/bzfs.vcxproj +++ b/MSVC/build/bzfs.vcxproj @@ -92,7 +92,7 @@ MaxSpeed OnlyExplicitInline .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - _CONSOLE;WIN32;NDEBUG;INSIDE_BZ;%(PreprocessorDefinitions) + _CONSOLE;WIN32;NDEBUG;INSIDE_BZ;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) true MultiThreadedDLL true @@ -142,7 +142,7 @@ copy "$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\bin\*.dll" "..\..\ MaxSpeed OnlyExplicitInline .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - _CONSOLE;WIN32;NDEBUG;INSIDE_BZ;%(PreprocessorDefinitions) + _CONSOLE;WIN32;NDEBUG;INSIDE_BZ;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) true MultiThreadedDLL true @@ -191,7 +191,7 @@ copy "$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\bin\*.dll" "..\..\ Disabled false .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - _CONSOLE;WIN32;_DEBUG;INSIDE_BZ;%(PreprocessorDefinitions) + _CONSOLE;WIN32;_DEBUG;INSIDE_BZ;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -245,7 +245,7 @@ copy "$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\bin\*.dll" "..\..\ Disabled false .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - _CONSOLE;WIN32;_DEBUG;INSIDE_BZ;%(PreprocessorDefinitions) + _CONSOLE;WIN32;_DEBUG;INSIDE_BZ;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL diff --git a/MSVC/build/config.h b/MSVC/build/config.h index c6b9b05f7e..79b10c4aa9 100644 --- a/MSVC/build/config.h +++ b/MSVC/build/config.h @@ -126,5 +126,3 @@ inline void W32_DEBUG_TRACE (const char* buffer ) #ifndef in_addr_t #define in_addr_t unsigned long #endif - -#pragma warning( disable : 4351 ) diff --git a/MSVC/build/game.vcxproj b/MSVC/build/game.vcxproj index c39e00bf07..66327d4eda 100644 --- a/MSVC/build/game.vcxproj +++ b/MSVC/build/game.vcxproj @@ -80,7 +80,7 @@ Disabled false .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + WIN32;_DEBUG;_LIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -103,7 +103,7 @@ Disabled false .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + WIN32;_DEBUG;_LIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -121,7 +121,7 @@ .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + WIN32;NDEBUG;_LIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL @@ -138,7 +138,7 @@ .\;..\..\include;$(BZ_DEPS)\output-$(Configuration)-$(PlatformShortName)\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + WIN32;NDEBUG;_LIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL diff --git a/include/common.h b/include/common.h index bb0017a462..a6aa3a9389 100644 --- a/include/common.h +++ b/include/common.h @@ -82,10 +82,6 @@ extern int debugLevel; # define UNUSED(parameter) (parameter) # endif # else -# if defined(_MSC_VER) -/* disable reporting an "unreferenced formal parameter" */ -# pragma warning( disable : 4100 ) -# endif # define UNUSED(parameter) (parameter) # endif # endif diff --git a/include/win32.h b/include/win32.h index ebcd1df0e9..6a4f32331f 100644 --- a/include/win32.h +++ b/include/win32.h @@ -51,15 +51,12 @@ typedef unsigned int uint32_t; /* stuff specific to visual studio */ #if (_MSC_VER) -# pragma warning(disable: 4503) -# pragma warning(disable: 4355) - // missing functions #ifndef snprintf # define snprintf _snprintf #endif - #endif // _MSC_VER + #endif // __WIN32_H__ // Local Variables: *** diff --git a/src/common/KeyManager.cxx b/src/common/KeyManager.cxx index 4068b3da16..bd614edea3 100644 --- a/src/common/KeyManager.cxx +++ b/src/common/KeyManager.cxx @@ -10,10 +10,6 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#if defined(_MSC_VER) -#pragma warning(4:4503) -#endif - // interface header #include "KeyManager.h" diff --git a/src/common/StateDatabase.cxx b/src/common/StateDatabase.cxx index 3197f26ac2..626a492bdf 100644 --- a/src/common/StateDatabase.cxx +++ b/src/common/StateDatabase.cxx @@ -10,10 +10,6 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#if defined(_MSC_VER) -#pragma warning(4:4503) -#endif - // interface header #include "StateDatabase.h"