Created attachment 217669 [details] 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
A commit references this bug: Author: rigoletto Date: Thu Sep 3 02:46:49 UTC 2020 New revision: 547402 URL: https://svnweb.freebsd.org/changeset/ports/547402 Log: editors/texstudio: Fix build on -CURRENT. PR: 249030 Submitted by: rhurlin Changes: head/editors/texstudio/files/patch-src_texstudio.cpp
It was apparently just affecting -CURRENT. Thank you. :-)