public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Igor Bukanov" <igor@mir2.org>
To: "Jim Wilson" <wilson@tuliptree.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: GCC accepts dynamically-sized array in sizeof with -std=c89
Date: Sat, 19 Apr 2008 09:33:00 -0000	[thread overview]
Message-ID: <7dee4710804181353u39bed374nda5ccf88c44f3645@mail.gmail.com> (raw)
Message-ID: <20080419093300.fYkBJaJ1UOX2e38xKn2w3-unLvgt7i0o61in0_TzOIA@z> (raw)
In-Reply-To: <4808E750.3050200@tuliptree.org>

On 18/04/2008, Jim Wilson <wilson@tuliptree.org> wrote:
>  Adding -pedantic does generate the warning.  Perhaps you expected a warning
> without -pedantic?  If you read the docs carefully, you will see that
> -std=c89 enables all features of that standard, but does not disable GNU
> extensions to that standard.  You need -pedantic for that.

You are right, I have misted -pedantic and with -pedantic-errors the
example does generated the error.

Regards, Igor

  reply	other threads:[~2008-04-19  1:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-16 14:15 Igor Bukanov
2008-04-18 18:27 ` Jim Wilson
2008-04-19  4:54   ` Igor Bukanov [this message]
2008-04-19  7:03     ` Igor Bukanov
2008-04-19  9:33     ` Igor Bukanov

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=7dee4710804181353u39bed374nda5ccf88c44f3645@mail.gmail.com \
    --to=igor@mir2.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=wilson@tuliptree.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).