[PATCH] xserver: Move 'pragma GCC diagnostic' outside functions

Keith Packard keithp at keithp.com
Thu Sep 18 22:29:12 PDT 2014


Dave Airlie <airlied at gmail.com> writes:

> From: Jon TURNEY <jon.turney at dronecode.org.uk>
>
> $ gcc --version
> gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3
>
> /jhbuild/checkout/xorg/xserver/os/log.c: In function ‘LogInit’:
> /jhbuild/checkout/xorg/xserver/os/log.c:199: error: #pragma GCC diagnostic not allowed inside functions
> /jhbuild/checkout/xorg/xserver/os/log.c:201: warning: format not a string literal, argument types not checked
> /jhbuild/checkout/xorg/xserver/os/log.c:212: error: #pragma GCC diagnostic not allowed inside functions
> /jhbuild/checkout/xorg/xserver/os/log.c:214: warning: format not a string literal, argument types not checked
>
> etc.
>
> Reviewed-by: Dave Airlie <airlied at redhat.com>
> Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
> Signed-off-by: Dave Airlie <airlied at redhat.com>

Merged.
   7e6bd54..28337cb  master -> master

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140918/ece9cd3d/attachment.sig>


More information about the xorg-devel mailing list