From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mingw64-runtime/, dev-util/mingw64-runtime/files/
Date: Sat, 12 Aug 2017 17:52:45 +0000 (UTC) [thread overview]
Message-ID: <1502559783.9ab22c6131945c53dedb9ff31d0cae13a5583ecb.slyfox@gentoo> (raw)
commit: 9ab22c6131945c53dedb9ff31d0cae13a5583ecb
Author: Marty Plummer <ntzrmtthihu777 <AT> gmail <DOT> com>
AuthorDate: Wed Jun 7 00:25:32 2017 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Aug 12 17:43:03 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ab22c61
dev-util/mingw64-runtime: fix build with USE="tools" with gcc7
Included patch only changes code formatting and comments. See:
https://sourceforge.net/p/mingw-w64/bugs/616/
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4878
...ingw64-runtime-5.0.2-implicit-fallthrough.patch | 41 ++++++++++++++++++++++
.../mingw64-runtime-5.0.2-r1.ebuild | 1 +
2 files changed, 42 insertions(+)
diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch
new file mode 100644
index 00000000000..859e00243d3
--- /dev/null
+++ b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch
@@ -0,0 +1,41 @@
+diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c
+index a935abfe..cefdd8cb 100644
+--- a/mingw-w64-tools/gendef/src/gendef.c
++++ b/mingw-w64-tools/gendef/src/gendef.c
+@@ -1031,13 +1031,16 @@ redo_switch:
+ PRDEBUG(" 0x%x illegal ", (unsigned int) b);
+ #endif
+ *aCode=c_ill; return 0;
+- case c_4: sz++;
+- case c_3: sz++;
+- case c_lb:
+- case c_2: sz++;
+- case c_retn: case c_retf:
+- case c_iret: case c_int3:
+- case c_ad: case c_op:
++ case c_4: sz++; // fallthrough
++ case c_3: sz++; // fallthrough
++ case c_lb: // fallthrough
++ case c_2: sz++; // fallthrough
++ case c_retn: // fallthrough
++ case c_retf: // fallthrough
++ case c_iret: // fallthrough
++ case c_int3: // fallthrough
++ case c_ad: // fallthrough
++ case c_op: // fallthrough
+ case c_1: *aCode=tb1; return sz;
+ case c_lv:
+ if (oper_mode) sz+=4;
+diff --git a/mingw-w64-tools/genpeimg/src/genpeimg.c b/mingw-w64-tools/genpeimg/src/genpeimg.c
+index b2430bbc..6a37b1a0 100644
+--- a/mingw-w64-tools/genpeimg/src/genpeimg.c
++++ b/mingw-w64-tools/genpeimg/src/genpeimg.c
+@@ -203,7 +203,7 @@ pass_args (int argc, char **argv)
+ goto error_point;
+ case 'h':
+ if (h[2] == 0)
+- show_usage ();
++ show_usage (); // fallthrough
+ default:
+ error_point:
+ fprintf (stderr, "Unknown option ,%s'\n", h);
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild
index e37ad32d072..534091fe654 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild
@@ -30,6 +30,7 @@ S="${WORKDIR}/mingw-w64-v${PV}"
PATCHES=(
"${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
"${FILESDIR}/${PN}-4.0.1-build.patch"
+ "${FILESDIR}/${PN}-5.0.2-implicit-fallthrough.patch"
)
is_crosscompile() {
next reply other threads:[~2017-08-12 17:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-12 17:52 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-23 13:23 [gentoo-commits] repo/gentoo:master commit in: dev-util/mingw64-runtime/, dev-util/mingw64-runtime/files/ Sergei Trofimovich
2017-11-04 20:51 Alon Bar-Lev
2018-09-17 22:05 Alon Bar-Lev
2020-01-28 8:37 Sergei Trofimovich
2022-11-04 18:33 Ionen Wolkens
2023-04-29 9:43 Ionen Wolkens
2023-09-12 16:15 Ionen Wolkens
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=1502559783.9ab22c6131945c53dedb9ff31d0cae13a5583ecb.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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