OSDN Git Service

pixman: fix warning
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 9 Jan 2013 09:17:08 +0000 (10:17 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 12 Jan 2013 12:42:55 +0000 (12:42 +0000)
Cc: afaerber@suse.de
Cc: agraf@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
include/ui/qemu-pixman.h

index 3c05c83..016fd87 100644 (file)
@@ -6,7 +6,14 @@
 #ifndef QEMU_PIXMAN_H
 #define QEMU_PIXMAN_H
 
+/* pixman-0.16.0 headers have a redundant declaration */
+#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+#endif
 #include <pixman.h>
+#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
+#pragma GCC diagnostic error "-Wredundant-decls"
+#endif
 
 #include "console.h"