[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: nonstandard initialization (ITS#2884)

> Full_Name: Hallvard B Furuseth
> Version: RE22
> OS:
> URL:
> Submission from: (NULL) (
> Submitted by: hallvard
> Initializers in braces may not do run-time computations in standard C,
> like this one:
>    struct berval id = { ctrl->ldctl_value.bv_len, (char *)buf }
> gcc -pedantic in slapd/ warns:

Fixed most of the warnings in servers/slapd;
what's left is a few "unused var" and a couple
of "ISO C forbids function pointer" stuff
in module.c and sl_malloc.c; I'd prefer someone
else to fix the latter in the most appropriate


Pierangelo Masarati