From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 218BF3938C10; Tue, 12 May 2020 11:28:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 218BF3938C10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589282906; bh=MfZs1kcSvrgtksrEiJWXUY8GoWIgn3Z4H3Y7E+Xu6so=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bDKe4VesqiMDOnzP6OwL3q/12BqAlGPyQAVRMjcD7bAIkdqC6KOQowjp45wGR/1hW lcFnFtQzSXeP+6ekC8Y68AATNTvol6Nro6wsBeQ7BNDMNldDzXTdve8U5ApmdINmW6 pfdEthCeJwbZK+6GUo/o9iqRXQTBxRRHIxWhC7dI= From: "chrubis at suse dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84685] Designated initializers warning Date: Tue, 12 May 2020 11:28:24 +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: 6.3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: chrubis at suse dot cz X-Bugzilla-Status: NEW 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: cc attachments.created 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 11:28:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84685 Cyril Hrubis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chrubis at suse dot cz --- Comment #4 from Cyril Hrubis --- Created attachment 48519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48519&action=3Dedit Simplified reproducer. I got a plenty of these useless warnings as well for LTP https://github.com/linux-test-project/ltp. It also looks like the warning is not printed in the compound literal is la= st in the structure. In my case swapping struct bar *b and int a silences the warning.=