public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "M. P. Halpin" <mphalpin@cc.gatech.edu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c/6559: "-std=c99 -pedantic" displays c89 warning Date: Thu, 16 May 2002 21:36:00 -0000 [thread overview] Message-ID: <20020517043601.7699.qmail@sources.redhat.com> (raw) The following reply was made to PR c/6559; it has been noted by GNATS. From: "M. P. Halpin" <mphalpin@cc.gatech.edu> To: schnetter@uni-tuebingen.de, pinskia@physics.uc.edu Cc: gcc-gnats@gcc.gnu.org Subject: Re: c/6559: "-std=c99 -pedantic" displays c89 warning Date: Fri, 17 May 2002 00:32:53 -0400 (EDT) Howdy. I hate to be a bother, but on gnatsweb it said this was fixed in gcc3.1. I just downloaded and installed the gcc3.1 release on my local workstation (FreeBSD 4.5), and it's still giving warnings when I compile (I was using "-std=c99 -pedantic -O3 -Wall"). So I grepped the source and found this in c-decl.c, starting on line 4620: if (pedantic) { if (TREE_CONSTANT (size)) pedwarn ("ISO C89 forbids array `%s' whose size can't be evaluated", name); else pedwarn ("ISO C89 forbids variable-size array `%s'", name); } Changing "if (pedantic)" to "if (pedantic && !flag_isoc99)" seemed to fix the problem.
next reply other threads:[~2002-05-17 4:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-05-16 21:36 M. P. Halpin [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-05-16 22:38 rth 2002-05-04 12:06 Andrew Pinski 2002-05-04 10:36 schnetter
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=20020517043601.7699.qmail@sources.redhat.com \ --to=mphalpin@cc.gatech.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).