[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [POLL] C99, declaration after statement
From: |
Paul Eggert |
Subject: |
Re: [POLL] C99, declaration after statement |
Date: |
Sat, 24 Sep 2011 23:09:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 |
On 09/24/11 22:31, Gary V. Vaughan wrote:
> $ cc -o hello hello.c
> cc-1241 cc: ERROR File = hello.c, Line = 7
> A declaration cannot appear after an executable statement in a block.
You're supposed to use cc's -c99 flag, no?
Or compile with c99? Then declarations after statements
should work; see, for example
<http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00241.html>.
Is 'configure' not doing this for you automatically?
If so, then let's fix that.
- Re: [PATCH 8/8] fts: do not exhaust memory when processing million-entry directories, Bruno Haible, 2011/09/22
- Re: [PATCH 8/8] fts: do not exhaust memory when processing million-entry directories, Jim Meyering, 2011/09/24
- Re: C99, declaration after statement, Bruno Haible, 2011/09/24
- Re: C99, declaration after statement, Jim Meyering, 2011/09/24
- [POLL] C99, declaration after statement, Bruno Haible, 2011/09/24
- Re: [POLL] C99, declaration after statement, Eric Blake, 2011/09/24
- Re: [POLL] C99, declaration after statement, Gary V. Vaughan, 2011/09/25
- Re: [POLL] C99, declaration after statement, Paul Eggert, 2011/09/25
- Re: [POLL] C99, declaration after statement, Gary V. Vaughan, 2011/09/25
- Re: [POLL] C99, declaration after statement,
Paul Eggert <=
- Re: [POLL] C99, declaration after statement, Gary V. Vaughan, 2011/09/25
- Re: [POLL] C99, declaration after statement, Pádraig Brady, 2011/09/25
- Re: [POLL] C99, declaration after statement, Paul Eggert, 2011/09/25
- Re: [POLL] C99, declaration after statement, Bruno Haible, 2011/09/25
- Re: [POLL] C99, declaration after statement, Paul Eggert, 2011/09/25