From: <man...@us...> - 2013-05-18 18:42:50
|
Revision: 2103 http://sourceforge.net/p/modplug/code/2103 Author: manxorist Date: 2013-05-18 18:42:27 +0000 (Sat, 18 May 2013) Log Message: ----------- [Ref] Build openmpt with VS2010 release builds with warning level 4. Silence some resulting trivial warnings right away. Modified Paths: -------------- trunk/OpenMPT/common/typedefs.cpp trunk/OpenMPT/mptrack/mptrack_10.vcxproj trunk/OpenMPT/sounddsp/DSP.cpp trunk/OpenMPT/soundlib/Mmx_mix.cpp trunk/OpenMPT/unarchiver/unlha.cpp Modified: trunk/OpenMPT/common/typedefs.cpp =================================================================== --- trunk/OpenMPT/common/typedefs.cpp 2013-05-18 18:20:21 UTC (rev 2102) +++ trunk/OpenMPT/common/typedefs.cpp 2013-05-18 18:42:27 UTC (rev 2103) @@ -147,6 +147,12 @@ << std::endl; } #endif // MODPLUG_TRACKER +#else + UNREFERENCED_PARAMETER(file); + UNREFERENCED_PARAMETER(line); + UNREFERENCED_PARAMETER(function); + UNREFERENCED_PARAMETER(format); + UNREFERENCED_PARAMETER(args); #endif } Modified: trunk/OpenMPT/mptrack/mptrack_10.vcxproj =================================================================== --- trunk/OpenMPT/mptrack/mptrack_10.vcxproj 2013-05-18 18:20:21 UTC (rev 2102) +++ trunk/OpenMPT/mptrack/mptrack_10.vcxproj 2013-05-18 18:42:27 UTC (rev 2103) @@ -149,7 +149,7 @@ <AssemblerListingLocation>.\Release/</AssemblerListingLocation> <ObjectFileName>.\Release/</ObjectFileName> <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName> - <WarningLevel>Level3</WarningLevel> + <WarningLevel>Level4</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <CompileAs>Default</CompileAs> <ExceptionHandling>Async</ExceptionHandling> @@ -212,7 +212,7 @@ <AssemblerListingLocation>.\ReleaseLTCG/</AssemblerListingLocation> <ObjectFileName>.\ReleaseLTCG/</ObjectFileName> <ProgramDataBaseFileName>.\ReleaseLTCG/</ProgramDataBaseFileName> - <WarningLevel>Level3</WarningLevel> + <WarningLevel>Level4</WarningLevel> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <CompileAs>Default</CompileAs> <ExceptionHandling>Async</ExceptionHandling> Modified: trunk/OpenMPT/sounddsp/DSP.cpp =================================================================== --- trunk/OpenMPT/sounddsp/DSP.cpp 2013-05-18 18:20:21 UTC (rev 2102) +++ trunk/OpenMPT/sounddsp/DSP.cpp 2013-05-18 18:42:27 UTC (rev 2103) @@ -14,7 +14,11 @@ #include "../sounddsp/DSP.h" #include <math.h> +#ifdef _MSC_VER +#pragma warning(disable: 4725) // instruction may be inaccurate on some Pentiums +#endif + #ifndef NO_DSP Modified: trunk/OpenMPT/soundlib/Mmx_mix.cpp =================================================================== --- trunk/OpenMPT/soundlib/Mmx_mix.cpp 2013-05-18 18:20:21 UTC (rev 2102) +++ trunk/OpenMPT/soundlib/Mmx_mix.cpp 2013-05-18 18:42:27 UTC (rev 2103) @@ -74,8 +74,8 @@ test edx, (1<<22) // Bit 22: AMD MMX extensions jz Done or fProcessorExtensions, PROCSUPPORT_MMXEX // MMX extensions supported + Done: } -Done: bMMXChecked = true; } return fProcessorExtensions; Modified: trunk/OpenMPT/unarchiver/unlha.cpp =================================================================== --- trunk/OpenMPT/unarchiver/unlha.cpp 2013-05-18 18:20:21 UTC (rev 2102) +++ trunk/OpenMPT/unarchiver/unlha.cpp 2013-05-18 18:42:27 UTC (rev 2103) @@ -15,6 +15,10 @@ #undef USHRT_MAX #undef SHRT_MIN +#ifdef _MSC_VER +#pragma warning(disable: 4244) // conversion from 'type1' to 'type2', possible loss of data +#endif + #include "unlha/lharc.h" #include "unlha/slidehuf.h" #include "unlha/header.cpp" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |