[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/31] ui: avoid warnings about directdb on Alpine / musl libc
|
From: |
Alex Bennée |
|
Subject: |
[PULL 04/31] ui: avoid warnings about directdb on Alpine / musl libc |
|
Date: |
Wed, 12 Jan 2022 11:26:55 +0000 |
From: Daniel P. Berrangé <berrange@redhat.com>
On Alpine, SDL is built with directfb support and this triggers warnings
during QEMU build
In file included from /usr/include/directfb/direct/thread.h:38,
from /usr/include/directfb/direct/debug.h:43,
from /usr/include/directfb/direct/interface.h:36,
from /usr/include/directfb/directfb.h:49,
from /usr/include/SDL2/SDL_syswm.h:80,
from /builds/berrange/qemu/include/ui/sdl2.h:8,
from ../ui/sdl2-gl.c:31:
/usr/include/directfb/direct/os/waitqueue.h:41:25: error: redundant
redeclaration of 'direct_waitqueue_init' [-Werror=redundant-decls]
41 | DirectResult DIRECT_API direct_waitqueue_init ( DirectWaitQueue
*queue );
| ^~~~~~~~~~~~~~~~~~~~~
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20211215141949.3512719-5-berrange@redhat.com>
Message-Id: <20220105135009.1584676-5-alex.bennee@linaro.org>
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index 71bcf7ebda..8fb7e08262 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -5,7 +5,18 @@
#undef WIN32_LEAN_AND_MEAN
#include <SDL.h>
+
+/* with Alpine / muslc SDL headers pull in directfb headers
+ * which in turn trigger warning about redundant decls for
+ * direct_waitqueue_deinit.
+ */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+
#include <SDL_syswm.h>
+
+#pragma GCC diagnostic pop
+
#ifdef CONFIG_SDL_IMAGE
# include <SDL_image.h>
#endif
--
2.30.2
- [PULL 10/31] tests/docker: auto-generate ubuntu1804.docker with lcitool, (continued)
- [PULL 10/31] tests/docker: auto-generate ubuntu1804.docker with lcitool, Alex Bennée, 2022/01/12
- [PULL 02/31] spice: Update QXLInterface for spice >= 0.15.0, Alex Bennée, 2022/01/12
- [PULL 03/31] meson: require liburing >= 0.3, Alex Bennée, 2022/01/12
- [PULL 09/31] tests/docker: auto-generate fedora.docker with lcitool, Alex Bennée, 2022/01/12
- [PULL 12/31] tests/docker: auto-generate opensuse-leap.docker with lcitool, Alex Bennée, 2022/01/12
- [PULL 13/31] tests/docker: remove ubuntu.docker container, Alex Bennée, 2022/01/12
- [PULL 07/31] tests: integrate lcitool for generating build env manifests, Alex Bennée, 2022/01/12
- [PULL 01/31] ui: avoid compiler warnings from unused clipboard info variable, Alex Bennée, 2022/01/12
- [PULL 20/31] tests/docker: add libfuse3 development headers, Alex Bennée, 2022/01/12
- [PULL 06/31] tests/docker: switch fedora image to release 35, Alex Bennée, 2022/01/12
- [PULL 04/31] ui: avoid warnings about directdb on Alpine / musl libc,
Alex Bennée <=
- [PULL 05/31] ci: explicitly skip I/O tests on alpine, Alex Bennée, 2022/01/12
- [PULL 14/31] .gitlab-ci.d/cirrus: auto-generate variables with lcitool, Alex Bennée, 2022/01/12
- [PULL 16/31] tests/docker: fix sorting of alpine image package lists, Alex Bennée, 2022/01/12
- [PULL 17/31] tests/docker: fully expand the alpine package list, Alex Bennée, 2022/01/12
- [PULL 15/31] tests/docker: updates to alpine package list, Alex Bennée, 2022/01/12
- [PULL 18/31] tests/docker: auto-generate alpine.docker with lcitool, Alex Bennée, 2022/01/12
- [PULL 21/31] hw/arm: add control knob to disable kaslr_seed via DTB, Alex Bennée, 2022/01/12
- [PULL 22/31] monitor: move x-query-profile into accel/tcg to fix build, Alex Bennée, 2022/01/12
- [PULL 23/31] docs/devel: update C standard to C11, Alex Bennée, 2022/01/12
- [PULL 25/31] linux-user/elfload: add extra logging for hole finding, Alex Bennée, 2022/01/12