bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canon-host.c disagreement (gnulib vs coreutils); zero initializers


From: Simon Josefsson
Subject: Re: canon-host.c disagreement (gnulib vs coreutils); zero initializers
Date: Fri, 24 Jun 2005 21:09:28 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>
>> I recall some compilers complaining about a trailing ','s.  Is it
>> really OK by C89?  I'm just curious.
>
> Yes, it is allowed in C89.
>
> Perhaps you're thinking of enumeration specifiers.  The declaration:
>
> enum { zero, };
>
> is not allowed in C89.

Ah, indeed, I now remember that I had hit this problem with some error
value enum's in more than one of my projects.  Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]