git: ae0a63532762 - main - editors/libreoffice: Fix build with QT5 on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Sep 2022 17:55:04 UTC
The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=ae0a635327629b218f6af11fb3421c310a292a38 commit ae0a635327629b218f6af11fb3421c310a292a38 Author: Felix Palmen <zirias@FreeBSD.org> AuthorDate: 2022-09-05 12:41:34 +0000 Commit: Felix Palmen <zirias@FreeBSD.org> CommitDate: 2022-09-05 17:54:19 +0000 editors/libreoffice: Fix build with QT5 on i386 Fix these errors by adding -Wno-c++11-narrowing: /wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-7.4.0.3/vcl/unx/generic/window/salframe.cxx:650:39: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'tools::Long' (aka 'long') in initializer list [-Wc++11-narrowing] maGeometry.setPosSize({ x, y }, { w, h }); ^ Approved by: office (fluffy), tcberner (mentor) --- editors/libreoffice/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 0712aec63964..1ddde06ec79b 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -344,7 +344,8 @@ LLD_UNSAFE= yes .endif .if ${CHOSEN_COMPILER_TYPE} == clang -CXXFLAGS_WARN= -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs +CXXFLAGS_WARN= -Woverloaded-virtual -Wno-c++11-narrowing \ + -Wno-unused-parameter -Wno-unused-local-typedefs .else CXXFLAGS_WARN= -Wshadow -Woverloaded-virtual .endif