https://bugs.openldap.org/show_bug.cgi?id=9545
--- Comment #3 from Simon Pichugin simon.pichugin@gmail.com --- (In reply to Howard Chu from comment #2)
The getconcurrency/setconcurrency functions take none or one int argument, so again this is irrelevant. Note that we have already included <pthread.h> correctly, which is where these functions are declared. If you're getting these warnings that generally means your compiler environment is incorrect.
I am not sure here as I don't have the same warnings on OpenLDAP 'master' branch code build (while running on completely the same environment).
In any case, none of these warnings indicate any bug in OpenLDAP code. The ldap_pvt_tls_check_hostname prototype has been added in 2.5 to silence the warning but code is correct regardless.
I agree with you. It should not hurt any execution and my main concerns were more about 'ldap_pvt_tls_check_hostname' (and ‘strncpy’ one)
Could you please suggest what can cause the 2.4 build to report these warnings while 'master' build doesn't have them?