Snippets for libevent 2.1.12 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/libevent/2.1.12/18.fc45/data/logs/x86_64/build.log.
-
evutil_rand.c:56:16: warning: ignoring return value of 'arc4random' declared with attribute 'warn_unused_result' [-Wunused-result] 56 | (void) arc4random(); | ^~~~~~~~~~~~ -
sample/le-proxy.c:116:37: warning: ‘ERR_func_error_string’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 116 | ERR_func_error_string(err); | ^~~~~~~~~~~~~~~~~~~~~ -
sample/openssl_hostname_validation.c:77:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 77 | common_name_entry = X509_NAME_get_entry(X509_get_subject_name((X509 *) server_cert), common_name_loc); | ^ -
sample/openssl_hostname_validation.c:83:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 83 | common_name_asn1 = X509_NAME_ENTRY_get_data(common_name_entry); | ^ -
evutil.c:213:21: warning: argument 4 of type 'int[2]' with mismatched bound [-Warray-parameter=] 213 | evutil_socket_t fd[2])
-
evutil.c:2004:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2004 | cp = strchr(src, '%'); | ^ -
evutil.c:2535:13: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Wunterminated-string-initialization] 2535 | "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
event.c:1362:32: warning: storing the address of local variable 'ncalls' in 'ev_34(D)->ev_.ev_signal.ev_pncalls' [-Wdangling-pointer=] 1362 | ev->ev_pncalls = &ncalls; | ~~~~~~~~~~~~~~~^~~~~~~~~ -
test/regress_util.c:934:22: warning: variable ‘n’ set but not used [-Wunused-but-set-variable=] 934 | int i, j, k, n=0; | ^ -
test/regress_buffer.c:130:13: warning: variable ‘n’ set but not used [-Wunused-but-set-variable=] 130 | int n = 0; | ^ -
test/tinytest_macros.h:116:22: warning: cast from function call of type ‘unsigned char *’ to non-matching type ‘long int’ [-Wbad-function-cast] 116 | type val1_ = (type)(a); \ | ^