From: Gregor Schneider Date: Mon, 24 Aug 2009 11:50:37 +0000 (+0000) Subject: ddraw_test: Use const char* for string constants, gcc 4.4 warning X-Git-Tag: ReactOS-0.3.11~982 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b84ac6c703840236d2c35265d563195de082769d ddraw_test: Use const char* for string constants, gcc 4.4 warning svn path=/trunk/; revision=42906 --- diff --git a/rostests/dxtest/ddraw/Surface/create.cpp b/rostests/dxtest/ddraw/Surface/create.cpp index 7ad5cb5068c..14c33346e93 100644 --- a/rostests/dxtest/ddraw/Surface/create.cpp +++ b/rostests/dxtest/ddraw/Surface/create.cpp @@ -2,7 +2,7 @@ HWND CreateBasicWindow (VOID); 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 }; diff --git a/rostests/dxtest/ddraw/ddrawtest.h b/rostests/dxtest/ddraw/ddrawtest.h index c1e3c8d3202..35d4a27b304 100644 --- a/rostests/dxtest/ddraw/ddrawtest.h +++ b/rostests/dxtest/ddraw/ddrawtest.h @@ -24,7 +24,7 @@ typedef BOOL (*TESTPROC)(INT*, INT*); typedef struct tagTEST { - CHAR* Test; + const CHAR* Test; TESTPROC Proc; } TEST, *PTEST; diff --git a/rostests/dxtest/ddraw/debug.cpp b/rostests/dxtest/ddraw/debug.cpp index 8744547ca50..a2830eb2311 100644 --- a/rostests/dxtest/ddraw/debug.cpp +++ b/rostests/dxtest/ddraw/debug.cpp @@ -1,7 +1,7 @@ #define GetCode(X) printf("%s\n", DDErrorString(X)); -PCHAR DDErrorString (HRESULT hResult) +const PCHAR DDErrorString (HRESULT hResult) { switch (hResult) {