[vbox-dev] assignment makes pointer from integer without a cast in fakedri_drv.c

Michal Seben mseben at suse.cz
Wed Dec 2 15:37:49 GMT 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox-typecast.diff
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20091202/f7ac0ec1/attachment.bin>


More information about the vbox-dev mailing list