Summary: | dev-libs/libcss-0.6.1 fails to build against gcc-7.1, src/parse/parse.c:2298:19: error: this statement may fall through [-Werror=implicit-fallthrough=] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chí-Thanh Christopher Nguyễn <chithanh> |
Component: | Current packages | Assignee: | Michael Weber (RETIRED) <xmw> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | http://bugs.netsurf-browser.org/mantis/view.php?id=2536 | ||
Whiteboard: | ~arch only | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 260867, 617524 | ||
Attachments: | build.log |
Description
Chí-Thanh Christopher Nguyễn
2017-08-01 08:43:37 UTC
Seems that upstream uses comment /* Fall through */ after the state->substate = Go; to build library. Setting -Werror=implicit-fallthrough= 0 to 3 should help. Probably forcing this cflag in the ebuild could be the solution. According to gcc documentation, the way to solve this problem is to add __attribute__((fallthrough)); to the switch statement. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2c056f0abb7a03325c58ab1b6fa7dc5202f1e8 commit 2f2c056f0abb7a03325c58ab1b6fa7dc5202f1e8 Author: Michael Weber <xmw@gentoo.org> AuthorDate: 2017-12-18 14:33:06 +0000 Commit: Michael Weber <xmw@gentoo.org> CommitDate: 2017-12-18 14:34:06 +0000 dev-libs/libcss: Ignore some gcc diagnostics (upstream is aware of), version bump. Closes: https://bugs.gentoo.org/626754 Closes: https://bugs.gentoo.org/626752 Bug: https://bugs.gentoo.org/636224 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-libs/libcss/Manifest | 2 ++ dev-libs/libcss/libcss-0.6.1.ebuild | 9 +++++++++ dev-libs/libcss/libcss-0.7.0.ebuild | 30 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) |