xserver-multidpi/Xext
Jeremy Huddleston a7a00e4bd8 security: Silence some benign -Wformat warnings
XID may be either 'unsigned long' or 'unsigned int' depending on:

typedef unsigned long CARD64;
typedef unsigned int CARD32;
typedef unsigned long long CARD64;
typedef unsigned long CARD32;

typedef unsigned long XID;
typedef CARD32 XID;

so when building with -Wformat, we get some warnings that are benign.  This silences them.

security.c:215:52: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
    SecurityAudit("revoked authorization ID %d\n", pAuth->id);
                                            ~~     ^~~~~~~~~
                                            %lu
  CC       dpmsstubs.lo
security.c:553:25: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
         client->index, pAuth->id, pAuth->trustLevel, pAuth->timeout,
                        ^~~~~~~~~
security.c:553:55: warning: format specifies type 'int' but the argument has type 'CARD32' (aka 'unsigned long')
      [-Wformat,Format String Issue]
         client->index, pAuth->id, pAuth->trustLevel, pAuth->timeout,
                                                      ^~~~~~~~~~~~~~
security.c:554:10: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
         pAuth->group, eventMask);
         ^~~~~~~~~~~~
security.c:554:24: warning: format specifies type 'int' but the argument has type 'Mask' (aka 'unsigned long')
      [-Wformat,Format String Issue]
         pAuth->group, eventMask);
                       ^~~~~~~~~
security.c:781:19: warning: format specifies type 'unsigned int' but the argument has type 'Mask' (aka 'unsigned
long')
      [-Wformat,Format String Issue]
                  requested, rec->id, cid,
                  ^~~~~~~~~
security.c:781:30: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
                  requested, rec->id, cid,
                             ^~~~~~~
security.c:863:23: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
                      rec->pWin->drawable.id, wClient(rec->pWin)->index,
                      ^~~~~~~~~~~~~~~~~~~~~~
security.c:893:31: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
                              rec->pWin->drawable.id,
                              ^~~~~~~~~~~~~~~~~~~~~~
security.c:915:39: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
      [-Wformat,Format String Issue]
                  rec->client->index, rec->pWin->drawable.id,
                                      ^~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-10-19 11:49:54 -04:00
..
bigreq.c Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
dpms.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
dpmsproc.h Xext: _X_EXPORT DPMSSet and DPMSSupported 2014-01-12 10:14:49 -08:00
dpmsstubs.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
geext.c xge: Hide some implementation details 2015-07-08 16:40:58 -04:00
geext.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
geint.h xge: Hide some implementation details 2015-07-08 16:40:58 -04:00
hashtable.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
hashtable.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Makefile.am Build dpmsstubs.c once as a convenience library, rather than once for each DDX which wants to use it 2014-03-27 14:09:33 +00:00
panoramiX.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
panoramiX.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
panoramiXh.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
panoramiXprocs.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
panoramiXsrv.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
panoramiXSwap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
saver.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
security.c security: Silence some benign -Wformat warnings 2015-10-19 11:49:54 -04:00
securitysrv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
shape.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
shm.c shm: Fix xselinux resource initialization for xinerama pixmaps 2015-05-07 15:10:19 -04:00
shmint.h xext: Fix shmint.h to not use headers outside of sdk_HEADERS 2013-11-14 10:22:15 +09:00
sleepuntil.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
sleepuntil.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
sync.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
syncsdk.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
syncsrv.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xace.c Xext, os: Remove OS-internal usages within XACE and XSELinux 2015-09-24 13:38:24 -04:00
xace.h xace: Add XaceHookIsSet helper function 2015-06-10 14:14:25 +10:00
xacestr.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xcmisc.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xf86bigfont.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xf86bigfontsrv.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
xres.c xres: Silence -Wunused-function warnings when building !COMPOSITE or !RENDER 2015-10-19 11:49:54 -04:00
xselinux_ext.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xselinux_hooks.c Xext, os: Remove OS-internal usages within XACE and XSELinux 2015-09-24 13:38:24 -04:00
xselinux_label.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xselinux.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xselinuxint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xtest.c Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
xvdisp.c Xv: unvalidated lengths in XVideo extension swapped procs [CVE-2014-8099] 2014-12-08 18:09:48 -08:00
xvdisp.h Fix swapped Xv dispatch under Xinerama. 2007-12-02 14:15:36 -05:00
xvdix.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xvmain.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
xvmc.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
xvmcext.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00