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

Jim Meyering jim at meyering.net
Mon Aug 17 09:34:56 UTC 2009


Richard W.M. Jones wrote:

> On Mon, Aug 17, 2009 at 11:10:55AM +0200, Jim Meyering wrote:
>> From: Jim Meyering <meyering at 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.




More information about the Libguestfs mailing list