Don't assume writeable C strings.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5508 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-05-26 22:40:06 +00:00
parent b19aff0084
commit d18253fe33
2 changed files with 3 additions and 3 deletions

View File

@ -187,11 +187,11 @@ void Destroy()
#endif
}
void HandleCLError(cl_int error, char* str)
void HandleCLError(cl_int error, const char* str)
{
#if defined(HAVE_OPENCL) && HAVE_OPENCL
char* name;
const char* name;
switch(error)
{
#define CL_ERROR(x) case (x): name = #x; break

View File

@ -64,7 +64,7 @@ void Destroy();
cl_program CompileProgram(const char *Kernel);
cl_kernel CompileKernel(cl_program program, const char *Function);
void HandleCLError(cl_int error, char* str = 0);
void HandleCLError(cl_int error, const char* str = 0);
}
#endif