Snippets for openldap 2.7.0 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/openldap27-server/2.7.0/150amd64-default.log.
-
../../include/ac/crypt.h:26:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 26 | extern char *(crypt)(); | ^ -
tls_o.c:547:7: warning: label followed by a declaration is a C23 extension [-Wc23-extensions] 547 | X509 *cert = OSSL_STORE_INFO_get0_CERT( info ); | ^ -
tls_o.c:757:6: warning: label followed by a declaration is a C23 extension [-Wc23-extensions] 757 | X509 *cert = OSSL_STORE_INFO_get0_CERT(info); | ^ -
tls_o.c:777:6: warning: label followed by a declaration is a C23 extension [-Wc23-extensions] 777 | X509_STORE *x509_s = SSL_CTX_get_cert_store( ctx ); | ^ -
common.c:242:9: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 242 | ip = inet_ntop( AF_INET6, &sai->sin6_addr, ip6buf, sizeof( ip6buf )); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
common.c:1423:9: warning: assigning to 'char *' from 'const char[25]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 1423 | msg = connectErr; | ^ ~~~~~~~~~~ -
listener.c:68:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 68 | } | ^ -
config.c:139:41: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 139 | c->linelen = lutil_b64_pton( c->line, c->tline, decode_len ); | ^~~~~~~~ -
logging.c:156:8: warning: expression result unused [-Wunused-value] 156 | !write( 2, buf, len ); | ^~~~~~~~~~~~~~~~~~~~~ -
logging.c:157:7: warning: expression result unused [-Wunused-value] 157 | !write( logfile_fd, buf, len ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
logging.c:174:8: warning: expression result unused [-Wunused-value] 174 | !write( 2, buf, len ); | ^~~~~~~~~~~~~~~~~~~~~ -
logging.c:175:7: warning: expression result unused [-Wunused-value] 175 | !write( logfile_fd, buf, len ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bind.c:1237:22: warning: format specifies type 'int' but the argument has type 'sig_atomic_t' (aka 'long') [-Wformat] 1236 | "%s: ldap_back_quarantine exit (%d) err=%d.\n", | ~~ | %ld 1237 | op->o_log_prefix, li->li_isquarantined, rs->sr_err ); | ^~~~~~~~~~~~~~~~~~~~ -
extended.c:245:11: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 245 | strcpy( rs->sr_text, text ); | ^~~~~~~~~~~ -
extended.c:372:11: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 372 | strcpy( rs->sr_text, text ); | ^~~~~~~~~~~ -
meta_result.c:1496:7: warning: expression result unused [-Wunused-value] 1496 | for (j; j<ntargets; j++) { | ^ -
deref.c:485:19: warning: assigning to 'char *' from 'const char[26]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 485 | ctrl->ldctl_oid = deref_oid; | ^ ~~~~~~~~~ -
refint.c:563:61: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 563 | SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH, &rq->oldndn, &i, NULL ); | ^~ -
config.c:2396:47: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2396 | c->linelen = lutil_b64_pton( c->line, c->tline, decode_len ); | ^~~~~~~~ -
ldif-filter.c:209:16: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] 209 | sep = "\r\n" + 2 - line_len; /* sep = copy(line) */ | ~~~~~~~^~~ -
cloak.c:93:10: warning: left operand of comma operator has no effect [-Wunused-value] 93 | ci_next, c->valx < 0 || i < c->valx; | ^~~~~~~ -
cloak.c:148:21: warning: left operand of comma operator has no effect [-Wunused-value] 148 | c->valx < 0 || i < c->valx, *cip; | ~~~~~~~~~~~ ^ ~~~~~~~~~~~ -
cloak.c:245:4: warning: call to undeclared function 'attr_clean'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 245 | attr_clean( a ); | ^ -
pam.c:95:14: warning: 9 enumeration values not handled in switch: 'PP_accountLocked', 'PP_passwordModNotAllowed', 'PP_mustSupplyOldPassword'... [-Wswitch] 95 | switch (error) { | ^~~~~ -
./sha2.h:163:9: warning: 'SHA256_Init' macro redefined [-Wmacro-redefined] 163 | #define SHA256_Init pw_SHA256_Init | ^ -
./sha2.h:164:9: warning: 'SHA256_Update' macro redefined [-Wmacro-redefined] 164 | #define SHA256_Update pw_SHA256_Update | ^ -
./sha2.h:165:9: warning: 'SHA256_Final' macro redefined [-Wmacro-redefined] 165 | #define SHA256_Final pw_SHA256_Final | ^ -
./sha2.h:166:9: warning: 'SHA256_End' macro redefined [-Wmacro-redefined] 166 | #define SHA256_End pw_SHA256_End | ^ -
./sha2.h:167:9: warning: 'SHA256_Data' macro redefined [-Wmacro-redefined] 167 | #define SHA256_Data pw_SHA256_Data | ^ -
./sha2.h:169:9: warning: 'SHA384_Init' macro redefined [-Wmacro-redefined] 169 | #define SHA384_Init pw_SHA384_Init | ^ -
./sha2.h:170:9: warning: 'SHA384_Update' macro redefined [-Wmacro-redefined] 170 | #define SHA384_Update pw_SHA384_Update | ^ -
./sha2.h:171:9: warning: 'SHA384_Final' macro redefined [-Wmacro-redefined] 171 | #define SHA384_Final pw_SHA384_Final | ^ -
./sha2.h:172:9: warning: 'SHA384_End' macro redefined [-Wmacro-redefined] 172 | #define SHA384_End pw_SHA384_End | ^ -
./sha2.h:173:9: warning: 'SHA384_Data' macro redefined [-Wmacro-redefined] 173 | #define SHA384_Data pw_SHA384_Data | ^ -
./sha2.h:175:9: warning: 'SHA512_Init' macro redefined [-Wmacro-redefined] 175 | #define SHA512_Init pw_SHA512_Init | ^ -
./sha2.h:176:9: warning: 'SHA512_Update' macro redefined [-Wmacro-redefined] 176 | #define SHA512_Update pw_SHA512_Update | ^ -
./sha2.h:177:9: warning: 'SHA512_Final' macro redefined [-Wmacro-redefined] 177 | #define SHA512_Final pw_SHA512_Final | ^ -
./sha2.h:178:9: warning: 'SHA512_End' macro redefined [-Wmacro-redefined] 178 | #define SHA512_End pw_SHA512_End | ^ -
./sha2.h:179:9: warning: 'SHA512_Data' macro redefined [-Wmacro-redefined] 179 | #define SHA512_Data pw_SHA512_Data | ^