public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/115428] New: 3 * unused in today's build @ 2024-06-11 8:04 dcb314 at hotmail dot com 2024-06-11 18:04 ` [Bug c/115428] " pinskia at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: dcb314 at hotmail dot com @ 2024-06-11 8:04 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115428 Bug ID: 115428 Summary: 3 * unused in today's build Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- From today's build of gcc with clang: working $ grep Wunused /tmp/0 ../../trunk/gcc/analyzer/call-summary.cc:727:21: warning: unused variable 'summary_cast_reg' [-Wunused-variable] ../../trunk/gcc/range-op.cc:209:1: warning: unused function 'has_pointer_operand_p' [-Wunused-function] ../../trunk/gcc/value-relation.cc:207:24: warning: unused variable 'relation_to_code' [-Wunused-const-variable] working $ I've checked all three and they all look like candidates for deletion. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/115428] 3 * unused in today's build 2024-06-11 8:04 [Bug c/115428] New: 3 * unused in today's build dcb314 at hotmail dot com @ 2024-06-11 18:04 ` pinskia at gcc dot gnu.org 2024-06-11 18:08 ` [Bug middle-end/115428] " pinskia at gcc dot gnu.org 2024-06-11 18:09 ` pinskia at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-06-11 18:04 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115428 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The reason why has_pointer_operand_p is not warned about is because it is a `static inline` function which GCC will never warn about. Looks like clang only warns about them if they are in a main source. The reason why relation_to_code is not warned about is a similar reasons but this time for `static const` variables. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/115428] 3 * unused in today's build 2024-06-11 8:04 [Bug c/115428] New: 3 * unused in today's build dcb314 at hotmail dot com 2024-06-11 18:04 ` [Bug c/115428] " pinskia at gcc dot gnu.org @ 2024-06-11 18:08 ` pinskia at gcc dot gnu.org 2024-06-11 18:09 ` pinskia at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-06-11 18:08 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115428 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=44598, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=52105 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > The reason why has_pointer_operand_p is not warned about is because it is a > `static inline` function which GCC will never warn about. Looks like clang > only warns about them if they are in a main source. See PR 52105 for that. > > The reason why relation_to_code is not warned about is a similar reasons but > this time for `static const` variables. This one see PR 44598. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/115428] 3 * unused in today's build 2024-06-11 8:04 [Bug c/115428] New: 3 * unused in today's build dcb314 at hotmail dot com 2024-06-11 18:04 ` [Bug c/115428] " pinskia at gcc dot gnu.org 2024-06-11 18:08 ` [Bug middle-end/115428] " pinskia at gcc dot gnu.org @ 2024-06-11 18:09 ` pinskia at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-06-11 18:09 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115428 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I can't figure out why GCC didn't warn about summary_cast_reg though ... ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-11 18:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-06-11 8:04 [Bug c/115428] New: 3 * unused in today's build dcb314 at hotmail dot com 2024-06-11 18:04 ` [Bug c/115428] " pinskia at gcc dot gnu.org 2024-06-11 18:08 ` [Bug middle-end/115428] " pinskia at gcc dot gnu.org 2024-06-11 18:09 ` pinskia 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).