On 04/27/2010 03:24 PM, Andreas Gruenbacher wrote:
> * lib/getdate.y (RELATIVE_TIME_0): Avoid a stupid 'const object should
> have initializer' warning.
>
> @@ -152,7 +152,7 @@ typedef struct
> #if HAVE_COMPOUND_LITERALS
> # define RELATIVE_TIME_0 ((relative_time) { 0, 0, 0, 0, 0, 0, 0 })
> #else
> -static relative_time const RELATIVE_TIME_0;
> +static relative_time const RELATIVE_TIME_0 = { 0, 0, 0, 0, 0, 0, 0 };
I would have used:
static relative_time const RELATIVE_TIME_0 = { 0 };
unless that also triggers a stupid warning.
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
