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

Re: [Libguestfs] [PATCH libguestfs 04/13] avoid warning about old-style no-param function definition



Richard W.M. Jones wrote:

> On Mon, Aug 17, 2009 at 11:10:55AM +0200, Jim Meyering wrote:
>> From: Jim Meyering <meyering redhat com>
>>
>> * daemon/df.c (do_df, do_df_h): Add "void".
>> * sync.c (do_sync): Likewise.
>
> I thought it could be omitted for function definitions (not
> for forward declarations)?  Anyhow, ACK.

You're right that "void" may be omitted, in general.
I've added them here solely to avoid noise
from one of gcc's old-style warning options.


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