[SSSD] fix -O3 variable may be uninitialized warnings

Michal Židek mzidek at redhat.com
Fri Nov 16 15:52:51 UTC 2012


On 11/09/2012 03:15 PM, Pavel Březina wrote:
> I think all of these are false positives so I just initialized the
> variables to silent the compiler.
>
> echo $CFLAGS
> -m64 -mtune=generic -O3 -fstack-protector-all -Wall -Wextra
> -Wno-sign-compare -Wno-unused-parameter
>
> src/providers/ldap/sdap_async_groups.c: In function
> 'sdap_nested_group_process_ldap_user':
> src/providers/ldap/sdap_async_groups.c:3408:8: warning: 'count' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_async_groups.c:3432:5: warning: 'replies' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_async_groups.c: In function
> 'sdap_nested_group_process_user':
> src/providers/ldap/sdap_async_groups.c:3195:8: warning: 'count' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_async_groups.c:3220:5: warning: 'replies' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_sudo.c: In function
> 'sdap_sudo_periodical_full_refresh_done':
> src/providers/ldap/sdap_sudo.c:1024:9: warning: 'dp_error' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_sudo.c:1024:9: warning: 'error' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
>
>
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>

ACK.

Thanks
Michal



More information about the sssd-devel mailing list