From 92830603059ce67e23ef91c660fcd261de97070c Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 19 Sep 2000 01:09:41 +0000 Subject: Fixed warning caused from using char* to store the return value of dlerror() git-svn-id: http://svn.leocad.org/trunk@128 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- linux/linux_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux') diff --git a/linux/linux_gl.cpp b/linux/linux_gl.cpp index d5819f3..bd083b8 100755 --- a/linux/linux_gl.cpp +++ b/linux/linux_gl.cpp @@ -45,7 +45,7 @@ PFNGLXGETPROCADDRESSARB pfnglXGetProcAddressARB; void* Sys_GLGetProc (const char *symbol) { void* func = dlsym (gl_module, symbol); - char* error = dlerror (); + const char* error = dlerror (); if (error) printf ("Error loading OpenGL library.\n%s\n", error); return func; @@ -61,7 +61,7 @@ void* Sys_GLGetExtension (const char *symbol) bool Sys_GLOpenLibrary (const char* libname) { - char *error; + const char *error; if (libname) { -- cgit v1.2.3