From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: Dave Korn <dave.korn.cygwin@googlemail.com>,
"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: What does zero-length array mean at file scope?
Date: Fri, 29 May 2009 09:04:00 -0000 [thread overview]
Message-ID: <4A1F1B49.1020505@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0905282059070.24872@digraph.polyomino.org.uk>
Joseph S. Myers wrote:
> On Sun, 24 May 2009, Dave Korn wrote:
>
>> So, is the testcase invalid, and should the compiler be warning about this
>> declaration? I couldn't get any complaint out of it even with "-W -Wall
>> -Wextra -pedantic -std=c89"? Or should the linker be allocating some space
>> for this zero-sized common?
>
> I get "warning: ISO C forbids zero-size array 'i0'" with -pedantic.
>
Err. Yes, so do I now. It turns out you can't just tack a -W on a
cut-n-pasted command line to cancel out an earlier -w.
cheers,
DaveK
next prev parent reply other threads:[~2009-05-28 23:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-24 9:07 Dave Korn
2009-05-24 9:21 ` Dave Korn
2009-05-24 9:26 ` Dave Korn
2009-05-24 10:34 ` Andrew Haley
2009-05-24 10:57 ` Dave Korn
2009-05-24 12:03 ` Andrew Haley
2009-05-24 12:29 ` Dave Korn
2009-05-24 12:41 ` Dave Korn
2009-05-24 20:57 ` Andrew Haley
2009-05-24 22:51 ` Dave Korn
2009-05-28 22:48 ` Joseph S. Myers
2009-05-28 23:18 ` Dave Korn
2009-05-29 10:17 ` Andrew Haley
2009-05-28 22:45 ` Joseph S. Myers
2009-05-29 9:04 ` Dave Korn [this message]
2009-05-24 9:47 Uros Bizjak
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=4A1F1B49.1020505@gmail.com \
--to=dave.korn.cygwin@googlemail.com \
--cc=gcc@gcc.gnu.org \
--cc=joseph@codesourcery.com \
/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).