public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: joern@wohnheim.fh-wedel.de (Jörn Engel)
To: linux-mtd@lists.infradead.org
Subject: [PATCH] C99 initializers for drivers/mtd files
Date: Mon, 3 Mar 2003 22:06:13 +0100	[thread overview]
Message-ID: <20030303210613.GA7875@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <1046724566.2672.634.camel@tubarao>

On Mon, 3 March 2003 13:49:27 -0700, Thayne Harbaugh wrote:
> 
> GCC 2.95 does not understand C99 and will fail to compile kernels
> that require this syntax.

You had me for a moment. But at least Debians gcc 2.95.4 does not fail
too badly:

joern at Limerick:~/foo$ cat foo.c
struct foo {
        int bar;
        int baz;
};

struct foo fufu = {
        .bar = 0,
        .baz = 0
};
joern at Limerick:~/foo$ gcc --version
2.95.4
joern at Limerick:~/foo$ gcc -c foo.c
joern at Limerick:~/foo$ ls
foo.c  foo.o
joern at Limerick:~/foo$  

What compiler do you have that breaks with C99 initializers?

J?rn

-- 
Invincibility is in oneself, vulnerability is in the opponent.
-- Sun Tzu

  reply	other threads:[~2003-03-03 21:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 20:53 [PATCH] C99 initializers for drivers/mtd files Art Haas
2003-02-27 19:44 ` Jörn Engel
2003-02-27 21:46   ` Art Haas
2003-03-02 18:56     ` Jörn Engel
2003-03-03 20:49       ` Thayne Harbaugh
2003-03-03 21:06         ` Jörn Engel [this message]
2003-03-03 21:21           ` Thayne Harbaugh
2003-03-03 21:33             ` Art Haas
2003-03-03 21:41               ` Thayne Harbaugh

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=20030303210613.GA7875@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-mtd@lists.infradead.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