From: Brian P. <bri...@tu...> - 2006-10-05 15:03:32
|
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 |