public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ismail at i10z dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/101446] -Wpedantic causes an error with zero size array
Date: Wed, 14 Jul 2021 09:47:41 +0000	[thread overview]
Message-ID: <bug-101446-4-yEbU0s4MYu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101446-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446

--- Comment #6 from İsmail Dönmez <ismail at i10z dot com> ---
(In reply to Richard Biener from comment #4)
> -Wpedantic was added as fix for PR44774 to make -Werror=pedantic work
> (as opposed to -Werror=edantic)

The problem is that it's inconsistent, here is a list of other -Wpedantic
warnings that do not result in an error:

ISO C does not support the '_Float128' type [-Wpedantic]
ISO C does not support the '_Float32' type [-Wpedantic]
ISO C does not support the '_Float32x' type [-Wpedantic]
ISO C does not support the '_Float64' type [-Wpedantic]
ISO C does not support the '_Float64x' type [-Wpedantic]
ISO C does not support the ‘_Float128’ type [-Wpedantic]
ISO C does not support the ‘_Float32x’ type [-Wpedantic]
ISO C does not support the ‘_Float32’ type [-Wpedantic]
ISO C does not support the ‘_Float64x’ type [-Wpedantic]
ISO C does not support the ‘_Float64’ type [-Wpedantic]
ISO C forbids 'goto *expr;' [-Wpedantic]
ISO C forbids 'return' with expression, in function returning void [-Wpedantic]
ISO C forbids an empty translation unit [-Wpedantic]
ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
ISO C forbids braced-groups within expressions [-Wpedantic]
ISO C forbids conditional expr with only one void side [-Wpedantic]
ISO C forbids conversion of function pointer to object pointer type
[-Wpedantic]
ISO C forbids conversion of object pointer to function pointer type
[-Wpedantic]
ISO C forbids empty initializer braces [-Wpedantic]
ISO C forbids forward references to 'enum' types [-Wpedantic]
ISO C forbids initialization between function pointer and 'void *' [-Wpedantic]
ISO C forbids label declarations [-Wpedantic]
ISO C forbids omitting the middle term of a '?:' expression [-Wpedantic]
ISO C forbids passing argument 1 of '_dl_addr' between function pointer and
'void *' [-Wpedantic]
ISO C forbids return between function pointer and 'void *' [-Wpedantic]
ISO C forbids specifying range of elements to initialize [-Wpedantic]

  parent reply	other threads:[~2021-07-14  9:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14  8:26 [Bug c/101446] New: " ismail at i10z dot com
2021-07-14  9:35 ` [Bug c/101446] " redi at gcc dot gnu.org
2021-07-14  9:40 ` rguenth at gcc dot gnu.org
2021-07-14  9:42 ` ismail at i10z dot com
2021-07-14  9:42 ` rguenth at gcc dot gnu.org
2021-07-14  9:46 ` rguenth at gcc dot gnu.org
2021-07-14  9:47 ` ismail at i10z dot com [this message]
2021-07-14 10:25 ` ismail at i10z dot com
2021-07-14 15:21 ` joseph at codesourcery dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-101446-4-yEbU0s4MYu@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).