public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: schnetter@uni-tuebingen.de To: gcc-gnats@gcc.gnu.org Subject: c/6559: "-std=c99 -pedantic" displays c89 warning Date: Sat, 04 May 2002 10:36:00 -0000 [thread overview] Message-ID: <20020504172913.32463.qmail@sources.redhat.com> (raw) >Number: 6559 >Category: c >Synopsis: "-std=c99 -pedantic" displays c89 warning >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat May 04 10:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Erik Schnetter >Release: 3.0.4 >Organization: >Environment: SuSE Linux 7.3 >Description: I have a function using a variable sized array. This function is legal in C99, but not legal in C89. When I compile with ~/gcc/bin/gcc -std=c99 -pedantic -c c99ped.c then I receive the warning c99ped.c: In function `c99ped': c99ped.c:3: warning: ISO C89 forbids variable-size array `x' I think that this warning should not be there, because I explicitely selected the C99 standard. In this case, I want -pedantic to warn only about violations of the C99 standard. My source code is the four lines of void c99ped (int dim) { double (* x)[dim]; } $ ~/gcc/bin/gcc --version 3.0.4 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-05-04 17:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-04 10:36 schnetter [this message] 2002-05-04 12:06 Andrew Pinski 2002-05-16 21:36 M. P. Halpin 2002-05-16 22:38 rth
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=20020504172913.32463.qmail@sources.redhat.com \ --to=schnetter@uni-tuebingen.de \ --cc=gcc-gnats@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: linkBe 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).