From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 470AC385E830; Tue, 11 Jun 2024 18:04:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 470AC385E830 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718129072; bh=RLGB9MkFNzHDCaBjk8BdMxem9GdyWcUJ83BW/APaOGI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dOMhwrHW4xwk5qGp9W6/ECjw9SDlaYzQeyDT1Nawtdn8SafZKBGU0WV7NXBBoc780 t0kFb2YSLxYArp1rv6VubH4YyFYU04I3Gr+1rMVtg93y1LZ9zTccMTjZZZqR68R/4K 5c0TDFdy4zkFHj8uZwnKtKDa7QigUfAuj9qFg3so= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115428] 3 * unused in today's build Date: Tue, 11 Jun 2024 18:04:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: easyhack, internal-improvement X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115428 --- Comment #1 from Andrew Pinski --- 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.=