From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA6FF3858C56; Tue, 26 Apr 2022 18:04:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA6FF3858C56 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug general/29093] clang fails to compile 0.187: error: format string is not a string literal Date: Tue, 26 Apr 2022 18:04:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2022 18:04:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29093 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- This is in fallback code in case the platform doesn't have error.h, but does have err.h. This seems to be a difference/bug between gcc and clang -Wformat-nonliteral. Clang implements this mostly the same way as GCC, but there is a difference= for functions that accept a va_list argument (for example, vprintf). GCC does n= ot emit -Wformat-nonliteral warning for calls to such functions. You might be able to fix this by annotating the error function itself. --=20 You are receiving this mail because: You are on the CC list for the bug.=