• Mike Gabriel's avatar
    hw/nxagent/Screen.c: Cast proper types before handing values over to fprintf(). · b5b7a2d2
    Mike Gabriel authored
     Amends the following compiler warnings:
    
     ```
     Screen.c: In function ‘nxagentCreateIconWindow’:
     Screen.c:394:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                    nxagentIconWindow);
                    ^
     Screen.c: In function ‘nxagentSetScreenSaverTime’:
     Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                        ScreenSaverTime, ScreenSaverInterval);
                        ^
     Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
     Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                        ScreenSaverTime, ScreenSaverInterval);
                        ^
     Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
     Screen.c: In function ‘nxagentOpenScreen’:
     Screen.c:1234:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                        visuals[numVisuals].vid);
                        ^
     Screen.c:1274:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                            depths[depthIndex].depth);
                            ^
     Screen.c:1282:17: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘VisualID’ [-Wformat=]
                      defaultVisualIndex, visuals[defaultVisualIndex].vid);
                      ^
     Screen.c:1319:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1336:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1348:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1357:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                        rootDepth, defaultVisual);
                        ^
     Screen.c:1723:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                          nxagentDefaultWindows[pScreen->myNum]);
                          ^
     Screen.c:1763:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                        nxagentDefaultWindows[pScreen->myNum]);
                        ^
     Screen.c:1775:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                      nxagentDefaultWindows[pScreen->myNum]);
                      ^
     Screen.c:1790:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                      nxagentDefaultWindows[pScreen->myNum]);
                      ^
     Screen.c: In function ‘nxagentShadowAdaptDepth’:
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
                   pVisual -> red_mask, pVisual -> green_mask, pVisual -> blue_mask);
                   ^
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
                    redMask, greenMask, blueMask);
                    ^
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
     Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     ```
    b5b7a2d2
Name
Last commit
Last update
..
X11/include Loading commit data...
man Loading commit data...
Agent.h Loading commit data...
Args.c Loading commit data...
Args.h Loading commit data...
Atoms.c Loading commit data...
Atoms.h Loading commit data...
Binder.c Loading commit data...
Binder.h Loading commit data...
CHANGELOG Loading commit data...
COPYING Loading commit data...
Client.c Loading commit data...
Client.h Loading commit data...
Clipboard.c Loading commit data...
Clipboard.h Loading commit data...
Colormap.c Loading commit data...
Colormap.h Loading commit data...
Composite.c Loading commit data...
Composite.h Loading commit data...
Cursor.c Loading commit data...
Cursor.h Loading commit data...
Dialog.c Loading commit data...
Dialog.h Loading commit data...
Display.c Loading commit data...
Display.h Loading commit data...
Drawable.c Loading commit data...
Drawable.h Loading commit data...
Error.c Loading commit data...
Error.h Loading commit data...
Events.c Loading commit data...
Events.h Loading commit data...
Extensions.c Loading commit data...
Extensions.h Loading commit data...
Font.c Loading commit data...
Font.h Loading commit data...
GC.c Loading commit data...
GCOps.c Loading commit data...
GCOps.h Loading commit data...
GCs.h Loading commit data...
Handlers.c Loading commit data...
Handlers.h Loading commit data...
Holder.c Loading commit data...
Holder.h Loading commit data...
Icons.h Loading commit data...
Image.c Loading commit data...
Image.h Loading commit data...
Imakefile Loading commit data...
Init.c Loading commit data...
Init.h Loading commit data...
Keyboard.c Loading commit data...
Keyboard.h Loading commit data...
Keystroke.c Loading commit data...
Keystroke.h Loading commit data...
LICENSE Loading commit data...
Literals.h Loading commit data...
Millis.c Loading commit data...
Millis.h Loading commit data...
NXcomposite.h Loading commit data...
NXcompositeext.h Loading commit data...
NXdamage.c Loading commit data...
NXdispatch.c Loading commit data...
NXdixfonts.c Loading commit data...
NXevents.c Loading commit data...
NXextension.c Loading commit data...
NXglxext.c Loading commit data...
NXglyph.c Loading commit data...
NXglyphcurs.c Loading commit data...
NXglyphstr.h Loading commit data...
NXmiexpose.c Loading commit data...
NXmiglyph.c Loading commit data...
NXmitrap.c Loading commit data...
NXmiwindow.c Loading commit data...
NXpicture.c Loading commit data...
NXpicturestr.h Loading commit data...
NXproperty.c Loading commit data...
NXrender.c Loading commit data...
NXrenderint.h Loading commit data...
NXresource.c Loading commit data...
NXshm.c Loading commit data...
NXwindow.c Loading commit data...
NXxvdisp.c Loading commit data...
Options.c Loading commit data...
Options.h Loading commit data...
Pixels.c Loading commit data...
Pixels.h Loading commit data...
Pixmap.c Loading commit data...
Pixmaps.h Loading commit data...
Pointer.c Loading commit data...
Pointer.h Loading commit data...
Reconnect.c Loading commit data...
Reconnect.h Loading commit data...
Render.c Loading commit data...
Render.h Loading commit data...
Rootless.c Loading commit data...
Rootless.h Loading commit data...
Screen.c Loading commit data...
Screen.h Loading commit data...
Splash.c Loading commit data...
Splash.h Loading commit data...
Split.c Loading commit data...
Split.h Loading commit data...
TestExt.c Loading commit data...
Trap.c Loading commit data...
Trap.h Loading commit data...
Utils.h Loading commit data...
Visual.c Loading commit data...
Visual.h Loading commit data...
Window.c Loading commit data...
Windows.h Loading commit data...
nxagent.xpm Loading commit data...
nxmissing.xpm Loading commit data...
os2Stub.c Loading commit data...
screensaver Loading commit data...
x2go.xpm Loading commit data...