Skip to content

Commit bd0ba14

Browse files
committed
Removed more warnings
1 parent d27a16d commit bd0ba14

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

MUSHclient.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<ClCompile>
7474
<Optimization>Disabled</Optimization>
7575
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)luacom\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
76-
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;LUA51;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
76+
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;LUA51;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY;_CRT_NON_CONFORMING_SWPRINTFS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7777
<MinimalRebuild>true</MinimalRebuild>
7878
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
7979
<PrecompiledHeader>Use</PrecompiledHeader>
@@ -122,7 +122,7 @@
122122
<Optimization>MaxSpeed</Optimization>
123123
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
124124
<AdditionalIncludeDirectories>$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
125-
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;ZLIB_DLL;LUA51;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125+
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;ZLIB_DLL;LUA51;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY;_CRT_NON_CONFORMING_SWPRINTFS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
126126
<StringPooling>true</StringPooling>
127127
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
128128
<FunctionLevelLinking>true</FunctionLevelLinking>

stdafx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#pragma warning (disable : 4706) // assignment within conditional expression
2222
#pragma warning (disable : 4710) // function 'x' not inlined
2323
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters in the debug information
24+
#pragma warning (disable : 4996) // MBCS support in MFC is deprecated and may be removed in a future version of MFC
2425

2526

2627
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

zlib/gzlib.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
#define open _open // POSIX compliance
2-
#define read _read // "
3-
#define write _write // "
4-
#define close _close // "
5-
61
/* gzlib.c -- zlib functions common to reading and writing gzip files
72
* Copyright (C) 2004, 2010, 2011, 2012, 2013 Mark Adler
83
* For conditions of distribution and use, see copyright notice in zlib.h

zlib/readme.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,3 @@ add:
5050
#pragma warning( disable : 4131) // uses old-style declarator
5151
#pragma warning( disable : 4244) // conversion from 'int' to 'unsigned short', possible loss of data
5252
#pragma warning( disable : 4702) // unreachable code
53-
54-
55-
5. Edit gzlib.c and at the start add the lines:
56-
57-
#define open _open // POSIX compliance
58-
#define read _read // "
59-
#define write _write // "
60-
#define close _close // "

0 commit comments

Comments
 (0)