fix some warnings

This commit is contained in:
Bill Currie 2005-10-22 04:55:41 +00:00 committed by Jeff Teunissen
parent fa20331113
commit c90fa213d6
3 changed files with 5 additions and 5 deletions

View file

@ -82,7 +82,7 @@ glXGetProcAddressARB (const GLubyte *procName)
if (glstub_trace) if (glstub_trace)
trace = atoi (glstub_trace); trace = atoi (glstub_trace);
} }
key.name = procName; key.name = (const char *) procName;
stub = bsearch (&key, gl_stub_funcs, NUM_FUNCS, sizeof (gl_stub_t), cmp); stub = bsearch (&key, gl_stub_funcs, NUM_FUNCS, sizeof (gl_stub_t), cmp);
if (!stub) if (!stub)
return 0; return 0;

View file

@ -801,8 +801,8 @@ const GLubyte *
norm_glGetString (GLenum name) norm_glGetString (GLenum name)
{ {
if (name == GL_VERSION) if (name == GL_VERSION)
return "1.4"; return (const GLubyte *) "1.4";
return ""; return (const GLubyte *) "";
} }
void void

View file

@ -954,8 +954,8 @@ trace_glGetString (GLenum name)
{ {
TRACE; TRACE;
if (name == GL_VERSION) if (name == GL_VERSION)
return "1.4"; return (const GLubyte *) "1.4";
return ""; return (const GLubyte *) "";
} }
void void