diff options
author | Marty Plummer <ntzrmtthihu777@gmail.com> | 2017-06-06 19:25:32 -0500 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-08-12 18:43:03 +0100 |
commit | 9ab22c6131945c53dedb9ff31d0cae13a5583ecb (patch) | |
tree | 8794ea1171e0d2f1f4c2b0848e0ba6c4bf8a4962 /dev-util | |
parent | sys-libs/glibc: update patchset, bug #627338, bug #592300 (diff) | |
download | gentoo-9ab22c6131945c53dedb9ff31d0cae13a5583ecb.tar.gz gentoo-9ab22c6131945c53dedb9ff31d0cae13a5583ecb.tar.bz2 gentoo-9ab22c6131945c53dedb9ff31d0cae13a5583ecb.zip |
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
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch | 41 | ||||
-rw-r--r-- | dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild | 1 |
2 files changed, 42 insertions, 0 deletions
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 000000000000..859e00243d33 --- /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 e37ad32d0721..534091fe6549 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() { |