Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Sep 2021 19:18:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258394] archivers/upx: fix build with clang 13
Message-ID:  <bug-258394-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 258394
           Summary: archivers/upx: fix build with clang 13
           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
             Flags: maintainer-feedback?(fjoe@FreeBSD.org)
          Assignee: fjoe@FreeBSD.org

During an exp-run for llvm 13 (see bug 258209), it turned out that
archivers/upx fails to build with clang 13 [1]:

p_wcle.cpp:739:27: error: variable 'n' set but not used
[-Werror,-Wunused-but-set-variable]
    unsigned count,object,n,r;
                          ^
1 error generated.

This is because clang 13 now has a -Wunused-but-set-variable warning simila=
r to
gcc's, and it is enabled under -Wall.

The p_wcle.cpp file has two instances where the 'n' variable is used for
debugging purposes, but the first instance is marked with UNUSED(n). The se=
cond
is not, triggering this warning.

[1]
http://gohan04.nyi.freebsd.org/data/mainamd64PR258209-default/2021-09-05_20=
h27m09s/logs/errors/upx-3.95.log

--=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-258394-7788>