# HG changeset patch # User reimar # Date 1136663815 0 # Node ID 98b0641483499141d2cf7a81ba9d1744688765f6 # Parent 3e49b98ad314c3edd6b6e8b2e9ceea7a74de4597 avoid some gcc 4 compiler warnings diff -r 3e49b98ad314 -r 98b064148349 libvo/gl_common.c --- 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)));