From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BFF2385842C; Tue, 20 Dec 2022 18:03:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BFF2385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671559392; bh=fDuRseKYVwmz4QmfYGeGxgxYAnzqMHUKfmZhyU3v+AU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DjirnTTReMNeDLAveyNjuKYu7S2g12xGMe3FC56GbtBHyqXjTH7yp7i8u3+O1v+KW l0xxhV8Dq68sydk6oVUyjkrAbIgoyS8DlP951hfrbdy/QuleFmFPTiVvups0rc5O5q wSnOn4gfjLxf/7cLA4+ZW7ktYAl0UHIjZ4Kc/9Lg= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94428] Reintroduce -Wzero-length-array Date: Tue, 20 Dec 2022 18:03:11 +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: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao 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=3D94428 --- Comment #4 from qinzhao at gcc dot gnu.org --- a new warning -Wstrict-flex-arrays was added to gcc13.=20 when using -Wstrict-flex-arrays -fstrict-flex-arrays=3D3 together, the new warning will report any misuse of zero-length arrays as flexible array memb= ers.=20 I think this new warning could be a replacement of this -Wzero-length-array. therefore the warning -Wzero-length-array might not be needed anymore.=