[SSSD] [PATCH] Warnings and -Werror from ./configure

Jakub Hrozek jhrozek at redhat.com
Fri Jan 10 14:10:45 UTC 2014


On Fri, Jan 10, 2014 at 03:01:20PM +0100, Lukas Slebodnik wrote:
> >+SSS_WARNINGS='
> >+    -Wall
> >+    -Wextra
> >+    -Wno-unused-parameter
> >+    -Wno-sign-compare
> >+    -Wformat-security
> clang reports some warnings with this flags.
>     src/providers/krb5/krb5_utils.c:1008:27: error: missing field 'client'
>         initializer [-Werror,-Wmissing-field-initializers]
>         krb5_creds cred = { 0 };
> 
> Do we care about this?
> according to c99 standard it should be false positive
> 
> [6.7.8.21] If there are fewer initializers in a brace-enclosed list than there
> are elements or members of an aggregate, or fewer characters in a string
> literal used to initialize an array of known size than there are elements in
> the array, the remainder of the aggregate shall be initialized implicitly the
> same as objects that have static storage duration.
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      the most interesting part
> 
> LS

I've seen this warning locally as well and I think it's just wrong and
should be ignored. (-Wno-missing-field-initializers or similar).



More information about the sssd-devel mailing list