Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Sep 2021 21:56:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258397] biology/jellyfish: fix unused variable warning with clang 13
Message-ID:  <bug-258397-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 258397
           Summary: biology/jellyfish: fix unused variable warning with
                    clang 13
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jwb@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(jwb@freebsd.org)
          Assignee: jwb@freebsd.org

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

In file included from sub_commands/count_main.cc:38:
In file included from ./include/jellyfish/hash_counter.hpp:16:
./include/jellyfish/dumper.hpp:48:24: error: variable 'mode' set but not us=
ed
[-Werror,-Wunused-but-set-variable]
    std::ios::openmode mode =3D std::ios::out;
                       ^
1 error generated.

This is an actual bug: the mode variable is setup in the
dumper_t::open_next_file() function, but never used for actually opening the
output file.

Fix this by adding the mode argument to the out.open() call.

[1]
http://gohan04.nyi.freebsd.org/data/mainamd64PR258209-default/2021-09-05_20=
h27m09s/logs/errors/Jellyfish-2.3.0.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-258397-7788>