[Spice-devel] [PATCH xf86-video-qxl 08/13] spiceqxl_io_port: use attribute printf (fix warning)

Christophe Fergeau cfergeau at redhat.com
Tue Apr 10 03:26:23 PDT 2012


ACK
do we want to hide these attributes in slightly more readable #define?

Christophe

On Mon, Apr 09, 2012 at 08:33:14PM +0300, Alon Levy wrote:
> ---
>  src/spiceqxl_io_port.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
> index ea02ac1..050e7b9 100644
> --- a/src/spiceqxl_io_port.c
> +++ b/src/spiceqxl_io_port.c
> @@ -58,7 +58,7 @@
>  
>  static int spiceqxl_io_port_debug_level = -1;
>  
> -static void dprint(int _level, const char *_fmt, ...)
> +static void __attribute__ ((format (printf, 2, 3))) dprint(int _level, const char *_fmt, ...)
>  {
>      if (spiceqxl_io_port_debug_level == -1) {
>          if (getenv("XSPICE_IO_PORT_DEBUG_LEVEL")) {
> -- 
> 1.7.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120410/ab8c450e/attachment.pgp>


More information about the Spice-devel mailing list