Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 12:27:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 249030] editors/texstudio: Fix build breakage (empy statement)
Message-ID:  <bug-249030-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249030

            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@freebsd.org
          Reporter: rhurlin@gwdg.de
          Assignee: rigoletto@freebsd.org
             Flags: maintainer-feedback?(rigoletto@freebsd.org)
 Attachment #217669 text/plain
         mime type:

Created attachment 217669
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217669&action=
=3Dedit
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 e=
nd
of a code line with only an compiler attribute, especially for clang compil=
ers.
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=3D7652#c28

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249030-7788>