public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/112317] New: Latest set of clang warnings
@ 2023-10-31 16:33 dcb314 at hotmail dot com
  2023-11-02 12:43 ` [Bug analyzer/112317] " cvs-commit at gcc dot gnu.org
  2023-11-02 12:45 ` dmalcolm at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2023-10-31 16:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112317

            Bug ID: 112317
           Summary: Latest set of clang warnings
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

From a clang build of gcc trunk, I get

$ grep /analyzer/ mk.out
../../trunk.year/gcc/analyzer/access-diagram.cc:976:26: warning: private field
'm_col_widths' is not used [-Wunused-private-field]
../../trunk.year/gcc/analyzer/region-model.cc:1914:20: warning: unused variable
'limited_sval' [-Wunused-variable]
../../trunk.year/gcc/analyzer/region-model.cc:1884:16: warning: unused variable
'strlen_sval' [-Wunused-variable]
../../trunk.year/gcc/analyzer/region-model.h:892:8: warning: 'warn' overrides a
member function but is not marked 'override' [-Winconsistent-missing-override]
$ 

Given that these have been hanging around for weeks, it might be worth fixing
them.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/112317] Latest set of clang warnings
  2023-10-31 16:33 [Bug analyzer/112317] New: Latest set of clang warnings dcb314 at hotmail dot com
@ 2023-11-02 12:43 ` cvs-commit at gcc dot gnu.org
  2023-11-02 12:45 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-02 12:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112317

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:

https://gcc.gnu.org/g:c71028c979d55f98b7727f9387bbe2f4ffe6de13

commit r14-5080-gc71028c979d55f98b7727f9387bbe2f4ffe6de13
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Thu Nov 2 08:39:51 2023 -0400

    analyzer: fix clang warnings [PR112317]

    No functional change intended.

    gcc/analyzer/ChangeLog:
            PR analyzer/112317
            * access-diagram.cc (class x_aligned_x_ruler_widget): Eliminate
            unused field "m_col_widths".
            (access_diagram_impl::add_valid_vs_invalid_ruler): Update for
            above change.
            * region-model.cc
            (check_one_function_attr_null_terminated_string_arg): Remove
            unused variables "cd_unchecked", "strlen_sval", and
            "limited_sval".
            * region-model.h (region_model_context_decorator::warn): Add
            missing "override".

    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/112317] Latest set of clang warnings
  2023-10-31 16:33 [Bug analyzer/112317] New: Latest set of clang warnings dcb314 at hotmail dot com
  2023-11-02 12:43 ` [Bug analyzer/112317] " cvs-commit at gcc dot gnu.org
@ 2023-11-02 12:45 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-11-02 12:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112317

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this.

Should be fixed (I hope) by the above patch.  Please reopen if I missed
anything.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-02 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 16:33 [Bug analyzer/112317] New: Latest set of clang warnings dcb314 at hotmail dot com
2023-11-02 12:43 ` [Bug analyzer/112317] " cvs-commit at gcc dot gnu.org
2023-11-02 12:45 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).