|
From: <man...@us...> - 2013-05-19 15:40:28
|
Revision: 2128
http://sourceforge.net/p/modplug/code/2128
Author: manxorist
Date: 2013-05-19 15:40:19 +0000 (Sun, 19 May 2013)
Log Message:
-----------
[Ref] Fix some trivial unused variable warnings.
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Load_mid.cpp
trunk/OpenMPT/soundlib/Load_mo3.cpp
Modified: trunk/OpenMPT/soundlib/Load_mid.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Load_mid.cpp 2013-05-19 14:53:45 UTC (rev 2127)
+++ trunk/OpenMPT/soundlib/Load_mid.cpp 2013-05-19 15:40:19 UTC (rev 2128)
@@ -1201,7 +1201,7 @@
#else // !MODPLUG_TRACKER
-bool CSoundFile::ReadMID(const BYTE *lpStream, DWORD dwMemLength, ModLoadingFlags loadFlags)
+bool CSoundFile::ReadMID(const BYTE * /*lpStream*/, DWORD /*dwMemLength*/, ModLoadingFlags /*loadFlags*/)
{
return false;
}
Modified: trunk/OpenMPT/soundlib/Load_mo3.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Load_mo3.cpp 2013-05-19 14:53:45 UTC (rev 2127)
+++ trunk/OpenMPT/soundlib/Load_mo3.cpp 2013-05-19 15:40:19 UTC (rev 2128)
@@ -20,8 +20,6 @@
//-------------------------------------------------------------------
{
file.Rewind();
- const void *stream = file.GetRawData();
- int length = file.GetLength();
// No valid MO3 file (magic bytes: "MO3")
if(!file.CanRead(8) || !file.ReadMagic("MO3"))
@@ -46,6 +44,9 @@
#else
+ const void *stream = file.GetRawData();
+ int length = file.GetLength();
+
bool result = false; // Result of trying to load the module, false == fail.
// try to load unmo3.dll dynamically.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|