Author: gschneider
Date: Mon Aug 24 13:50:37 2009
New Revision: 42906
URL:
http://svn.reactos.org/svn/reactos?rev=42906&view=rev
Log:
ddraw_test: Use const char* for string constants, gcc 4.4 warning
Modified:
trunk/rostests/dxtest/ddraw/Surface/create.cpp
trunk/rostests/dxtest/ddraw/ddrawtest.h
trunk/rostests/dxtest/ddraw/debug.cpp
Modified: trunk/rostests/dxtest/ddraw/Surface/create.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/Surface/crea…
==============================================================================
--- trunk/rostests/dxtest/ddraw/Surface/create.cpp [iso-8859-1] (original)
+++ trunk/rostests/dxtest/ddraw/Surface/create.cpp [iso-8859-1] Mon Aug 24 13:50:37 2009
@@ -2,7 +2,7 @@
LPDIRECTDRAW7 DirectDraw;
-BOOL TestCaps (char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
+BOOL TestCaps (const char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
{
LPDIRECTDRAWSURFACE7 Surface = NULL;
DDSURFACEDESC2 Desc = { 0 };
Modified: trunk/rostests/dxtest/ddraw/ddrawtest.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/ddrawtest.h?…
==============================================================================
--- trunk/rostests/dxtest/ddraw/ddrawtest.h [iso-8859-1] (original)
+++ trunk/rostests/dxtest/ddraw/ddrawtest.h [iso-8859-1] Mon Aug 24 13:50:37 2009
@@ -24,7 +24,7 @@
typedef struct tagTEST
{
- CHAR* Test;
+ const CHAR* Test;
TESTPROC Proc;
} TEST, *PTEST;
Modified: trunk/rostests/dxtest/ddraw/debug.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/debug.cpp?re…
==============================================================================
--- trunk/rostests/dxtest/ddraw/debug.cpp [iso-8859-1] (original)
+++ trunk/rostests/dxtest/ddraw/debug.cpp [iso-8859-1] Mon Aug 24 13:50:37 2009
@@ -1,7 +1,7 @@
#define GetCode(X) printf("%s\n", DDErrorString(X));
-PCHAR DDErrorString (HRESULT hResult)
+const PCHAR DDErrorString (HRESULT hResult)
{
switch (hResult)
{