Re: warning in dmx.c

Brian Paul <[email protected]> Thu, 05 Oct 2006 09:03:24 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
James Supancic wrote:
> warning in dmx.c
> 
> I am getting a warning in /opt/cr/dmx/dmx.c, due to a type differnce.
> I have attached a patch which fixes the problem.
> 
> Thank you for your time,
> James Steven Supancic III
> 
> 
> ------------------------------------------------------------------------
> 
> ? dmx.c.diff
> Index: dmx.c
> ===================================================================
> RCS file: /cvsroot/chromium/cr/dmx/dmx.c,v
> retrieving revision 1.1
> diff -r1.1 dmx.c
> 102c102
> < 	DMXGetScreenCount(dpy, &numScreens);
> ---
> 
>>	DMXGetScreenCount(dpy, (int*)&numScreens);
> 
> 127c127
> < 	if (!DMXGetWindowAttributes(dpy, xwin, &count, numScreens, dmxWinInfo))
> ---
> 
>>	if (!DMXGetWindowAttributes(dpy, xwin, (int*)&count, numScreens, dmxWinInfo))

Alternately, does changing "unsigned int" to "int" on line 97 silence 
the warnings?

Which compiler is this?

-Brian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV