https://bugs.documentfoundation.org/show_bug.cgi?id=167010
Bug ID: 167010
Summary: Need to revert a commit to build using latest clang
Product: LibreOffice
Version: 25.2.4.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 201269
--> https://bugs.documentfoundation.org/attachment.cgi?id=201269&action=edit
Patch for LO 25.2.4.X that permits it to build using clang 20.1.6 or 20.1.7
I'm unable to build LibreOffice 25.2.4.2 or 25.2.4.3 using clang 20.1.6 or
20.1.7 unless a recent commit to LibreOffice is partly reverted.
The patch that I'm using is attached. If the patch is used, the build issue
doesn't occur.
The issue might be due to clang 20.1.6 and 20.1.7 being more strict than
20.1.5.
If LibreOffice isn't patched, builds of the types listed above fail with
multiple occurrences of the following error message:
error: invalid argument type 'void' to unary expression
The errors occur in "pdfioutdev_gpl.cxx" and "pnghelper.cxx". They're related
to code of the following form:
if (!something->reset()) ...
"clang" objects to "!" being applied to the "something". For more information,
see the attached patch.
I regret that I've misplaced the commit ID for the LibreOffice commit that was
responsible for the issue.
--
You are receiving this mail because:
You are the assignee for the bug.