mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
- cleanup a bunch of vc++ compile / link warnings
This commit is contained in:
@@ -114,8 +114,7 @@
|
||||
</OptimizeReferences>
|
||||
<EnableCOMDATFolding>
|
||||
</EnableCOMDATFolding>
|
||||
<TargetMachine>
|
||||
</TargetMachine>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
|
@@ -113,8 +113,7 @@
|
||||
</OptimizeReferences>
|
||||
<EnableCOMDATFolding>
|
||||
</EnableCOMDATFolding>
|
||||
<TargetMachine>
|
||||
</TargetMachine>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
|
@@ -117,7 +117,7 @@
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>../../source/shared_lib/include/graphics;../../source/shared_lib/include/graphics/gl;../../source/shared_lib/include/platform;../../source/shared_lib/include/platform/win32;../../source/shared_lib/include/sound;../../source/shared_lib/include/sound/ds8;../../source/shared_lib/include/util;../../source/shared_lib/include/lua;../../source/shared_lib/include/xml;../../source/shared_lib/include/xml/rapidxml;../../source/glest_game/ai;../../source/glest_game/facilities;../../source/glest_game/game;../../source/glest_game/global;../../source/glest_game/graphics;../../source/glest_game/gui;../../source/glest_game/main;../../source/glest_game/menu;../../source/glest_game/network;../../source/glest_game/sound;../../source/glest_game/type_instances;../../source/glest_game/types;../../source/glest_game/world;../../source/windows_deps/include;../../source/windows_deps/xerces-c-3.1.1/src;../../source/windows_deps/SDL-1.2.15/include;../../source/shared_lib/include/platform/sdl;../../source/shared_lib/include/sound/openal;../../source/windows_deps/openal-soft-1.14/include;../../source/shared_lib/include/platform/posix;../../source/shared_lib/include/streflop;../../source/shared_lib/include/platform/common;../../source/windows_deps/curl-7.21.3/include;../../source/shared_lib/include/map;../../source/windows_deps/libircclient/include;../../source/windows_deps/glew-1.7.0/include;../../source/windows_deps/google-breakpad\trunk\src\client\windows\;../../source/windows_deps/google-breakpad\trunk\src\</AdditionalIncludeDirectories>
|
||||
<AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;XML_LIBRARY;USE_PCH=1;_CRT_SECURE_NO_WARNINGS;USE_STREFLOP;STREFLOP_SSE;LIBM_COMPILING_FLT32;CURL_STATICLIB;UNICODE;XERCES_STATIC_LIBRARY;GLEW_STATIC;ZLIB_WINAPI;HAVE_GOOGLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_WINDOWS;XML_LIBRARY;USE_PCH=1;_CRT_SECURE_NO_WARNINGS;USE_STREFLOP;STREFLOP_SSE;LIBM_COMPILING_FLT32;CURL_STATICLIB;UNICODE;XERCES_STATIC_LIBRARY;GLEW_STATIC;USE_FREETYPEGL;STATICLIB;USE_FTGL;FTGL_LIBRARY_STATIC;ZLIB_WINAPI;HAVE_GOOGLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>Async</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
@@ -134,7 +134,7 @@
|
||||
<Link>
|
||||
<AdditionalDependencies>dsound.lib;dxguid.lib;glew32s.lib;libogg_static.lib;libvorbis_static.lib;libvorbisfile_static.lib;opengl32.lib;glu32.lib;wsock32.lib;libglest.lib;mmc.lib;lua.lib;xerces-c_static_3.lib;Dbghelp.lib;libpng15.lib;jpeg.lib;zlibstat.lib;sdl.lib;sdlmain.lib;winmm.lib;openal32.lib;iphlpapi.lib;libstreflop.lib;libcurl.lib;ws2_32.lib;libircclient.lib;freetype244MT.lib;ftgl_static.lib;libeay32.lib;ssleay32.lib;crash_generation_client.lib;exception_handler.lib;common.lib;processor_bits.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>../../source/windows_deps/lib;../../build/$(Configuration)/libglest;../../source/shared_lib/sources/streflop/libstreflop;$(DXSDK_DIR)/lib/x86;../../source/windows_deps/Microsoft DirectX SDK %28November 2007%29/Lib/x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<IgnoreSpecificDefaultLibraries>libcmtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>
|
||||
@@ -146,10 +146,14 @@
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>NotSet</TargetMachine>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<GenerateMapFile>true</GenerateMapFile>
|
||||
<MapExports>true</MapExports>
|
||||
<ShowProgress>
|
||||
</ShowProgress>
|
||||
<IgnoreAllDefaultLibraries>
|
||||
</IgnoreAllDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_NO_STREFLOP|Win32'">
|
||||
|
@@ -106,6 +106,10 @@
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-MT|Win32'">
|
||||
<ClCompile>
|
||||
|
@@ -96,7 +96,7 @@
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>../../source/shared_lib/include;../../source/shared_lib/include/graphics;../../source/shared_lib/include/graphics/gl;../../source/shared_lib/include/platform;../../source/shared_lib/include/sound;../../source/shared_lib/include/sound/ds8;../../source/shared_lib/include/util;../../source/shared_lib/include/lua;../../source/shared_lib/include/xml;../../source/windows_deps/include;../../source/windows_deps/xerces-c-3.1.1/src;../../source/windows_deps/xerces-c-3.1.1/src/xercesc/xinclude;../../source/windows_deps/lpng1510;../../source/windows_deps/jpeg-8a;../../source/windows_deps/SDL-1.2.15/include;../../source/windows_deps/openal-soft-1.14/include;../../source/shared_lib/include/sound/openal;../../source/shared_lib/include/platform/posix;../../source/shared_lib/include/streflop;../../source/shared_lib/include/streflop/libm_flt32_source;../../source/shared_lib/include/platform/common;../../source/windows_deps/curl-7.21.3/include;../../source/shared_lib/include/map;../../source/shared_lib/include/platform/miniupnpc;../../source/shared_lib/include/libircclient/include;../../source/shared_lib/include/feathery_ftp;../../source/windows_deps/ftgl-2.1.3-rc5/src;../../source/windows_deps/freetype-2.4.4/include;../../source/windows_deps/glew-1.7.0/include;../../source/shared_lib/include/graphics/md5;../../source/shared_lib/include/graphics/freetype-gl;../../source/shared_lib/include/streflop/softfloat;../../source/shared_lib/include/xml/rapidxml;../../source/shared_lib/include/platform/sdl;../../source/shared_lib/include/platform/win32;../../source/windows_deps/vlc-2.0.1/include;../../source/windows_deps/fribidi-0.19.5/lib;../../source/windows_deps/fribidi-0.19.5/charset</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;USE_PCH=1;USE_STREFLOP;STREFLOP_SSE;STREFLOP_RANDOM_GEN_SIZE=32;LIBM_COMPILING_FLT32;CURL_STATICLIB;UNICODE;USE_FTGL;TA3D_PLATFORM_MSVC;TA3D_PLATFORM_WINDOWS;STATICLIB;USE_FREETYPEGL;XERCES_STATIC_LIBRARY;ZLIB_WINAPI;HAS_LIBVLC;HAVE_FRIBIDI;HAVE_GOOGLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;USE_PCH=1;USE_STREFLOP;STREFLOP_SSE;STREFLOP_RANDOM_GEN_SIZE=32;LIBM_COMPILING_FLT32;CURL_STATICLIB;UNICODE;USE_FTGL;FTGL_LIBRARY_STATIC;TA3D_PLATFORM_MSVC;TA3D_PLATFORM_WINDOWS;STATICLIB;USE_FREETYPEGL;XERCES_STATIC_LIBRARY;GLEW_STATIC;XML_LIBRARY;ZLIB_WINAPI;HAS_LIBVLC;HAVE_FRIBIDI;HAVE_GOOGLE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>Async</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
@@ -113,6 +113,8 @@
|
||||
<Lib>
|
||||
<AdditionalDependencies>libstreflop.lib;libcurl.lib;glew32s.lib;freetype244MT.lib;libvlc.lib;libfribidi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>.\;..\..\source\windows_deps\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_NO_STREFLOP|Win32'">
|
||||
|
@@ -1944,7 +1944,11 @@ void Game::update() {
|
||||
//Checksum checksum;
|
||||
//world->loadScenario(scenarioFile, &checksum, true);
|
||||
}
|
||||
#if defined(WIN32)
|
||||
catch(const exception) {
|
||||
#else
|
||||
catch(const exception &ex) {
|
||||
#endif
|
||||
gameStarted = true;
|
||||
totalRenderFps++;
|
||||
|
||||
|
@@ -284,6 +284,9 @@ unsigned int NetworkMessagePing::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.messageType = 0;
|
||||
packedData.pingFrequency = 0;
|
||||
packedData.pingTime = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
@@ -382,6 +385,8 @@ unsigned int NetworkMessageReady::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.checksum = 0;
|
||||
packedData.messageType = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
@@ -1571,6 +1576,7 @@ unsigned int NetworkMessageQuit::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.messageType = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType);
|
||||
@@ -2527,6 +2533,8 @@ unsigned int PlayerIndexMessage::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.messageType = 0;
|
||||
packedData.playerIndex = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
@@ -2615,6 +2623,8 @@ unsigned int NetworkMessageLoadingStatus::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.messageType = 0;
|
||||
packedData.status = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
@@ -2833,6 +2843,10 @@ unsigned int NetworkMessageUnMarkCell::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.factionIndex = 0;
|
||||
packedData.messageType = 0;
|
||||
packedData.targetX = 0;
|
||||
packedData.targetY = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
@@ -2936,6 +2950,10 @@ unsigned int NetworkMessageHighlightCell::getPackedSize() {
|
||||
static unsigned int result = 0;
|
||||
if(result == 0) {
|
||||
Data packedData;
|
||||
packedData.factionIndex = 0;
|
||||
packedData.messageType = 0;
|
||||
packedData.targetX = 0;
|
||||
packedData.targetY = 0;
|
||||
unsigned char *buf = new unsigned char[sizeof(packedData)*3];
|
||||
result = pack(buf, getPackedMessageFormat(),
|
||||
packedData.messageType,
|
||||
|
@@ -158,7 +158,11 @@ static inline T* readFromFileReaders(vector<FileReader<T> const *>* readers, con
|
||||
FileReader<T> const * reader = *i;
|
||||
ret = reader->read(file, filepath); //It is guaranteed that at least the filepath matches ...
|
||||
}
|
||||
#if defined(WIN32)
|
||||
catch (megaglest_runtime_error) {
|
||||
#else
|
||||
catch (megaglest_runtime_error &ex) {
|
||||
#endif
|
||||
throw;
|
||||
}
|
||||
catch (...) {
|
||||
@@ -206,7 +210,11 @@ static inline T* readFromFileReaders(vector<FileReader<T> const *>* readers, con
|
||||
FileReader<T> const * reader = *i;
|
||||
ret = reader->read(file, filepath, object); //It is guaranteed that at least the filepath matches ...
|
||||
}
|
||||
#if defined(WIN32)
|
||||
catch (megaglest_runtime_error) {
|
||||
#else
|
||||
catch (megaglest_runtime_error &ex) {
|
||||
#endif
|
||||
throw;
|
||||
}
|
||||
catch (...) {
|
||||
@@ -329,7 +337,11 @@ bool FileReader<T>::canRead(ifstream& file) const {
|
||||
delete wouldRead;
|
||||
return ret;
|
||||
}
|
||||
#if defined(WIN32)
|
||||
catch (megaglest_runtime_error) {
|
||||
#else
|
||||
catch (megaglest_runtime_error &ex) {
|
||||
#endif
|
||||
throw;
|
||||
}
|
||||
catch (...) {
|
||||
|
@@ -82,7 +82,7 @@ Pixmap2D* JPGReader::read(ifstream& is, const string& path, Pixmap2D* ret) const
|
||||
is.read((char*)buffer, (std::streamsize)length);
|
||||
static bool bigEndianSystem = Shared::PlatformByteOrder::isBigEndian();
|
||||
if(bigEndianSystem == true) {
|
||||
Shared::PlatformByteOrder::fromEndianTypeArray<uint8>(buffer,length);
|
||||
Shared::PlatformByteOrder::fromEndianTypeArray<uint8>(buffer,(size_t)length);
|
||||
}
|
||||
//Check buffer (weak jpeg check)
|
||||
//if (buffer[0] != 0x46 || buffer[1] != 0xA0) {
|
||||
|
Reference in New Issue
Block a user