I tested patching one attribute with that flag:
-LDAP_F(void) ldap_int_gssapi_close LDAP_P(( LDAP *ld, LDAPConn *lc )); +LDAP_F(void) ldap_int_gssapi_close LDAP_P(( LDAP *ld, LDAPConn *lc )) __attribute__ ((deprecated));
The build shows this then: ../../../../libraries/libldap/gssapi.c: In function ‘ldap_int_gssapi_setup’: ../../../../libraries/libldap/gssapi.c:620:2: warning: ‘ldap_int_gssapi_close’ is deprecated [-Wdeprecated-declarations] 620 | ldap_int_gssapi_close( ld, lc ); | ^~~~~~~~~~~~~~~~~~~~~ ../../../../libraries/libldap/gssapi.c:581:6: note: declared here 581 | void ldap_int_gssapi_close( LDAP *ld, LDAPConn *lc ) | ^~~~~~~~~~~~~~~~~~~~~
since that function is used internally, correctly. So I don't think it's a good approach.
« Back to merge proposal
I tested patching one attribute with that flag:
-LDAP_F(void) ldap_int_ gssapi_ close LDAP_P(( LDAP *ld, LDAPConn *lc )); gssapi_ close LDAP_P(( LDAP *ld, LDAPConn *lc )) __attribute__ ((deprecated));
+LDAP_F(void) ldap_int_
The build shows this then: ./../libraries/ libldap/ gssapi. c: In function ‘ldap_int_ gssapi_ setup’: ./../libraries/ libldap/ gssapi. c:620:2: warning: ‘ldap_int_ gssapi_ close’ is deprecated [-Wdeprecated- declarations] gssapi_ close( ld, lc ); ~~~~~~~ ~~~~~~~ ./../libraries/ libldap/ gssapi. c:581:6: note: declared here gssapi_ close( LDAP *ld, LDAPConn *lc ) ~~~~~~~ ~~~~~~~
../../.
../../.
620 | ldap_int_
| ^~~~~~~
../../.
581 | void ldap_int_
| ^~~~~~~
since that function is used internally, correctly. So I don't think it's a good approach.