From: <kai.kang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] libsdl2: disable check gcc -Wdeclaration-after-statement for ppc
Date: Mon, 10 Apr 2017 11:14:40 +0800 [thread overview]
Message-ID: <20170410031440.32220-1-kai.kang@windriver.com> (raw)
From: Kai Kang <kai.kang@windriver.com>
Disable check gcc option -Wdeclaration-after-statement for powerpc and
powerpc64 which causes compile failures:
| CC build/SDL_blit_N.lo
| .../tmp/work/ppc7400-wrs-linux/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/SDL_blit_N.c: In function 'calc_swizzle32':
| .../tmp/work/ppc7400-wrs-linux/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids
| mixed declarations and code [-Werror=declaration-after-statement]
| const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
| ^~~~~
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
...able-check-gcc-Wdeclaration-after-statement.patch | 20 ++++++++++++++++++++
meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb | 2 ++
2 files changed, 22 insertions(+)
create mode 100644 meta/recipes-graphics/libsdl2/libsdl2/disable-check-gcc-Wdeclaration-after-statement.patch
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/disable-check-gcc-Wdeclaration-after-statement.patch b/meta/recipes-graphics/libsdl2/libsdl2/disable-check-gcc-Wdeclaration-after-statement.patch
new file mode 100644
index 0000000..ad48af7
--- /dev/null
+++ b/meta/recipes-graphics/libsdl2/libsdl2/disable-check-gcc-Wdeclaration-after-statement.patch
@@ -0,0 +1,20 @@
+Upstream-Status: Inappropriate [disable feature]
+
+Disable check gcc option -Wdeclaration-after-statement for powerpc and
+powerpc64 which causes compile failures.
+
+Signed-off-by: Kai Kang <kai.kang@windriver.com>
+---
+diff --git a/configure.in b/configure.in
+index e2ddc9c..73b10f5 100644
+--- a/configure.in
++++ b/configure.in
+@@ -2950,7 +2950,7 @@ case "$host" in
+ *-*-minix*) ARCH=minix ;;
+ esac
+ CheckVisibilityHidden
+- CheckDeclarationAfterStatement
++# CheckDeclarationAfterStatement
+ CheckDummyVideo
+ CheckDiskAudio
+ CheckDummyAudio
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb
index d747cf1..33963c1 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.5.bb
@@ -20,6 +20,8 @@ SRC_URI = " \
file://0001-prepend-our-sysroot-path-so-that-make-finds-our-wayl.patch \
file://0002-Avoid-finding-build-host-s-wayland-scanner.patch \
"
+SRC_URI_append_powerpc = " file://disable-check-gcc-Wdeclaration-after-statement.patch"
+SRC_URI_append_powerpc64 = " file://disable-check-gcc-Wdeclaration-after-statement.patch"
S = "${WORKDIR}/SDL2-${PV}"
--
2.10.1
next reply other threads:[~2017-04-10 3:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-10 3:14 kai.kang [this message]
2017-04-10 7:28 ` [PATCH] libsdl2: disable check gcc -Wdeclaration-after-statement for ppc Richard Purdie
2017-04-10 19:51 ` Khem Raj
2017-04-11 2:46 ` Kang Kai
2017-04-18 15:30 ` Burton, Ross
2017-04-19 2:54 ` Kang Kai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170410031440.32220-1-kai.kang@windriver.com \
--to=kai.kang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox