[SSSD] fix -O3 variable may be uninitialized warnings

Pavel Březina pbrezina at redhat.com
Fri Nov 9 14:15:07 UTC 2012


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]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-O3-variable-may-be-uninitialized-warnings.patch
Type: text/x-patch
Size: 2153 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20121109/5ff56bd6/attachment.bin>


More information about the sssd-devel mailing list