[Bug 249030] editors/texstudio: Fix build breakage (empy statement)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 31 12:27:37 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249030
Bug ID: 249030
Summary: editors/texstudio: Fix build breakage (empy statement)
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: rigoletto at freebsd.org
Reporter: rhurlin at gwdg.de
Assignee: rigoletto at freebsd.org
Flags: maintainer-feedback?(rigoletto at freebsd.org)
Attachment #217669 text/plain
mime type:
Created attachment 217669
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217669&action=edit
fixes build breakage because of empty statement
Trying to build editors/texstudio (3.0.0) on CURRENT amd64 breaks with the
following error:
-------------------------------
src/texstudio.cpp:3603:11: error: fallthrough attribute is only allowed on
empty statements
[[gnu::fallthrough]]
^
src/texstudio.cpp:3603:29: note: did you forget ';'?
[[gnu::fallthrough]]
^
;
-------------------------------
This seems to be related to [1], which describes the need of a ';' at the end
of a code line with only an compiler attribute, especially for clang compilers.
Not sure, if gcc10 also needs the semicolon.
Anyway, the attached patch, saved in the port under files/, makes
editors/texstudio buildable (on CURRENT) again.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652#c28
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list