Date: Fri, 06 Mar 2020 17:28:33 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 244636] archivers/upx: Fix build with clang 10.0.0 Message-ID: <bug-244636-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244636 Bug ID: 244636 Summary: archivers/upx: Fix build with clang 10.0.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: fjoe@FreeBSD.org Reporter: dim@FreeBSD.org Blocks: 244251 Flags: maintainer-feedback?(fjoe@FreeBSD.org) Assignee: fjoe@FreeBSD.org Created attachment 212196 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212196&action= =3Dedit Adjust indentation in upx's LZMA parts As reported in bug 244251, with clang 10.0.0 the print/libraqm port runs in= to a -Werror warning: In file included from compress_lzma.cpp:305: ./../src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.cpp:971:9: error: mislea= ding indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] { ^ ./../src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.cpp:967:7: note: previous statement is here if (repIndex =3D=3D 0) ^ The strange indentation is caused by a commented out if statement, which the 7-Zip author seems to be fond of. Newer LZMA SDK drops have a totally different code structure, so I could not find any upstream commit that fixes this. Therefore, I suggest to just shift the opening brace a bit to shut up the warning. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244251 [Bug 244251] [exp-run] Against projects/clang1000-import branch --=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-244636-7788>