Hi all!

I have problem with next piece of code in 
src/VBox/Additions/common/crOpenGL/fakedri_drv.c:201
--
shift = pStart-(dlip.dli_saddr+5);
--
build runs fine, but I hit warning :
--
/usr/src/packages/BUILD/VirtualBox-3.1.0_OSE/src/VBox/Additions/common/crOpenGL/fakedri_drv.c:201:
 
warning: assignment makes pointer from integer without a cast
--
and our build check scripts in build.opensuse.org resolve this warning as 
unacceptable, so I suppose this should be fixed to :
shift = (void *)(uintptr_t)pStart-((uintptr_t)dlip.dli_saddr-5);

patch attached, if patch is not acceptable please, could someone fix this 
warning ?

thanks

--- src/VBox/Additions/common/crOpenGL/fakedri_drv.c	2009-11-30 10:36:58.000000000 +0000
+++ src/VBox/Additions/common/crOpenGL/fakedri_drv.c	2009-12-01 13:36:40.000000000 +0000
@@ -198,7 +198,7 @@
             return;
         }
 
-        shift = pStart-(dlip.dli_saddr+5);
+        shift = (void *)(uintptr_t)pStart-((uintptr_t)dlip.dli_saddr-5);
 # ifndef VBOX_NO_MESA_PATCH_REPORTS
         crDebug("Size is small, inserting jmpq with shift %p instead", shift);
 # endif
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to