changeset 17336:98b064148349

avoid some gcc 4 compiler warnings
author reimar
date Sat, 07 Jan 2006 19:56:55 +0000
parents 3e49b98ad314
children 31d7b88c8c70
files libvo/gl_common.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Sat Jan 07 19:53:51 2006 +0000
+++ b/libvo/gl_common.c	Sat Jan 07 19:56:55 2006 +0000
@@ -289,7 +289,7 @@
 static void getFunctions(void *(*getProcAddress)(const GLubyte *),
                          const char *ext2) {
   const extfunc_desc_t *dsc;
-  const char *extensions = glGetString(GL_EXTENSIONS);
+  const char *extensions = (const char *)glGetString(GL_EXTENSIONS);
   char *allexts;
   if (!extensions) extensions = "";
   if (!ext2) ext2 = "";
@@ -1015,7 +1015,7 @@
  *
  * Copied from xine
  */
-static void *getdladdr(const GLubyte *s) {
+static void *getdladdr(const char *s) {
 #ifdef HAVE_LIBDL
 #if defined(__sun) || defined(__sgi)
   static void *handle = dlopen(NULL, RTLD_LAZY);
@@ -1097,8 +1097,9 @@
   {
     Window root;
     int tmp;
+    unsigned utmp;
     XGetGeometry(mDisplay, vo_window, &root, &tmp, &tmp,
-                  &vo_dwidth, &vo_dheight, &tmp, &tmp);
+        (unsigned *)&vo_dwidth, (unsigned *)&vo_dheight, &utmp, &utmp);
   }
   if (!keep_context) {
     void *(*getProcAddress)(const GLubyte *);
@@ -1113,7 +1114,7 @@
     if (!getProcAddress)
       getProcAddress = getdladdr("glXGetProcAddressARB");
     if (!getProcAddress)
-      getProcAddress = getdladdr;
+      getProcAddress = (void *)getdladdr;
     glXExtStr = getdladdr("glXQueryExtensionsString");
     getFunctions(getProcAddress, !glXExtStr ? NULL :
                  glXExtStr(mDisplay, DefaultScreen(mDisplay)));