Skip to content

Commit

Permalink
Removed more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Jan 7, 2017
1 parent d27a16d commit bd0ba14
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions MUSHclient.vcxproj
Expand Up @@ -73,7 +73,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)luacom\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;LUA51;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;LUA51;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY;_CRT_NON_CONFORMING_SWPRINTFS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>Use</PrecompiledHeader>
Expand Down Expand Up @@ -122,7 +122,7 @@
<Optimization>MaxSpeed</Optimization>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<AdditionalIncludeDirectories>$(SolutionDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;ZLIB_DLL;LUA51;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;ZLIB_DLL;LUA51;_CRT_SECURE_NO_WARNINGS;WINAPI_FAMILY;_CRT_NON_CONFORMING_SWPRINTFS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down
1 change: 1 addition & 0 deletions stdafx.h
Expand Up @@ -21,6 +21,7 @@
#pragma warning (disable : 4706) // assignment within conditional expression
#pragma warning (disable : 4710) // function 'x' not inlined
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters in the debug information
#pragma warning (disable : 4996) // MBCS support in MFC is deprecated and may be removed in a future version of MFC


#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
Expand Down
5 changes: 0 additions & 5 deletions zlib/gzlib.c
@@ -1,8 +1,3 @@
#define open _open // POSIX compliance
#define read _read // "
#define write _write // "
#define close _close // "

/* gzlib.c -- zlib functions common to reading and writing gzip files
* Copyright (C) 2004, 2010, 2011, 2012, 2013 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
Expand Down
8 changes: 0 additions & 8 deletions zlib/readme.txt
Expand Up @@ -50,11 +50,3 @@ add:
#pragma warning( disable : 4131) // uses old-style declarator
#pragma warning( disable : 4244) // conversion from 'int' to 'unsigned short', possible loss of data
#pragma warning( disable : 4702) // unreachable code


5. Edit gzlib.c and at the start add the lines:

#define open _open // POSIX compliance
#define read _read // "
#define write _write // "
#define close _close // "

0 comments on commit bd0ba14

Please sign in to comment.