[xiph-commits] r8617 - trunk/oggdsf/src/lib/helper/libilliCore
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Wed Jan 5 00:50:07 PST 2005
Author: illiminable
Date: 2005-01-05 00:50:06 -0800 (Wed, 05 Jan 2005)
New Revision: 8617
Modified:
trunk/oggdsf/src/lib/helper/libilliCore/StringHelper.cpp
trunk/oggdsf/src/lib/helper/libilliCore/libilliCore.cpp
Log:
* Warnings--
Modified: trunk/oggdsf/src/lib/helper/libilliCore/StringHelper.cpp
===================================================================
--- trunk/oggdsf/src/lib/helper/libilliCore/StringHelper.cpp 2005-01-05 08:47:14 UTC (rev 8616)
+++ trunk/oggdsf/src/lib/helper/libilliCore/StringHelper.cpp 2005-01-05 08:50:06 UTC (rev 8617)
@@ -56,6 +56,8 @@
string StringHelper::toNarrowStr(wstring inString) {
string retVal;
+ //TODO::: This conversion may result in loss of data. Warning stays.
+
//LPCWSTR retPtr = new wchar_t[retVal.length() + 1];
for (std::wstring::const_iterator i = inString.begin(); i != inString.end(); i++) {
retVal.append(1, *i);
Modified: trunk/oggdsf/src/lib/helper/libilliCore/libilliCore.cpp
===================================================================
--- trunk/oggdsf/src/lib/helper/libilliCore/libilliCore.cpp 2005-01-05 08:47:14 UTC (rev 8616)
+++ trunk/oggdsf/src/lib/helper/libilliCore/libilliCore.cpp 2005-01-05 08:50:06 UTC (rev 8617)
@@ -3,6 +3,9 @@
#include "stdafx.h"
+//These ignore unreferenced formal parameter (lpReserved and hModule since they are unused)
+#pragma warning( push )
+#pragma warning( disable : 4100 )
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
@@ -18,3 +21,5 @@
}
return TRUE;
}
+
+#pragma warning ( pop )
\ No newline at end of file
More information about the commits
mailing list