[SSSD] fix -O3 variable may be uninitialized warnings

Jakub Hrozek jhrozek at redhat.com
Fri Nov 16 16:55:52 UTC 2012


On Fri, Nov 16, 2012 at 04:52:51PM +0100, Michal Židek wrote:
> 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.

Pushed to master.



More information about the sssd-devel mailing list