mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
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:
parent
b19aff0084
commit
d18253fe33
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue