URL: https://github.com/SSSD/sssd/pull/1000 Title: #1000: Support NSS networks database lookups
pbrezina commented: """ Thank you. I see these warnings:
``` CC src/util/libsss_util_la-domain_info_utils.lo /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c: In function ‘sysdb_getipnetworkbyname’: /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:85:35: error: passing argument 5 of ‘sysdb_search_ipnetworks’ from incompatible pointer type [-Werror=incompatible-pointer-types] 85 | &res->count, &res->msgs); | ^~~~~~~~~~~ | | | unsigned int * In file included from /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:27: /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.h:81:41: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’ 81 | size_t *msgs_count, | ~~~~~~~~^~~~~~~~~~ /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c: In function ‘sysdb_getipnetworkbyaddr’: /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:152:35: error: passing argument 5 of ‘sysdb_search_ipnetworks’ from incompatible pointer type [-Werror=incompatible-pointer-types] 152 | &res->count, &res->msgs); | ^~~~~~~~~~~ | | | unsigned int * In file included from /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:27: /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.h:81:41: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’ 81 | size_t *msgs_count, | ~~~~~~~~^~~~~~~~~~ /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c: In function ‘sysdb_enumnetent’: /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:853:35: error: passing argument 5 of ‘sysdb_search_ipnetworks’ from incompatible pointer type [-Werror=incompatible-pointer-types] 853 | &res->count, &res->msgs); | ^~~~~~~~~~~ | | | unsigned int * /home/pbrezina/workspace/sssd/src/db/sysdb_ipnetworks.c:643:41: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’ 643 | size_t *msgs_count, | ~~~~~~~~^~~~~~~~~~ cc1: all warnings being treated as errors
```
``` $ echo $CFLAGS -m64 -mtune=generic -fstack-protector-all -Wall -Wextra -Wno-sign-compare -Wshadow -Wunused-variable -Wno-unused-parameter -Wno-error=cpp -O0 -ggdb3 -Werror -Wp,-U_FORTIFY_SOURCE $ rpm -q gcc gcc-9.2.1-1.fc31.x86_64 ``` """
See the full comment at https://github.com/SSSD/sssd/pull/1000#issuecomment-607160585
sssd-devel@lists.fedorahosted.org