URL:
https://github.com/SSSD/sssd/pull/378
Title: #378: [RFC] Use GNULIB's compiler warning code
jhrozek commented:
"""
btw there are more warnings on RHEL-6:
```
cache_req_data.o `test -f 'src/responder/common/cache_req/cache_req_data.c' ||
echo
'/var/lib/jenkins/workspace/ci/label/rhel6/'`src/responder/common/cache_req/cache_req_data.c
cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++ but
not for C
cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++ but
not for C
cc1: warnings being treated as errors
/var/lib/jenkins/workspace/ci/label/rhel6/src/responder/common/cache_req/cache_req_result.c:
In function 'cache_req_add_result':
/var/lib/jenkins/workspace/ci/label/rhel6/src/responder/common/cache_req/cache_req_result.c:35:
error: declaration of 'index' shadows a global declaration [-Wshadow]
/usr/include/string.h:489: error: shadowed declaration is here [-Wshadow]
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/378#issuecomment-328961312