Snippets for rspamd 4.1.5 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/p73y1wska26k9sarrm0w3agmk5q84dwp-rspamd-4.1.5.drv.
-
/build/source/contrib/hiredis/hiredis.c:696:9: warning: ignoring return value of 'strerror_r' declared with attribute 'warn_unused_result' [-Wunused-result] 696 | strerror_r(errno, c->errstr, sizeof(c->errstr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/contrib/hiredis/net.c:108:5: warning: ignoring return value of 'strerror_r' declared with attribute 'warn_unused_result' [-Wunused-result] 108 | strerror_r(errorno, (char *)(buf + len), sizeof(buf) - len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/contrib/hiredis/sds.c:525:9: warning: function 'sdscatvprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 525 | vsnprintf(buf, buflen, fmt, cpy); | ^~~~~~~~~ -
/build/source/contrib/libucl/ucl_msgpack.c:105:51: warning: unused variable 'mask_negative' [-Wunused-variable] 105 | const unsigned char mask_positive = 0x7f, mask_negative = 0xe0, | ^~~~~~~~~~~~~ -
/build/source/contrib/replxx/src/replxx.cxx:272:47: warning: function 'void replxx::Replxx::print(const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 272 | int size = static_cast<int>( vsnprintf( nullptr, 0, format_, ap ) ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/contrib/replxx/src/replxx.cxx:276:18: warning: function 'void replxx::Replxx::print(const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 276 | vsnprintf( buf.get(), static_cast<size_t>( size + 1 ), format_, ap ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/contrib/replxx/src/replxx.cxx:374:47: warning: function 'int replxx_print(Replxx*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 374 | int size = static_cast<int>( vsnprintf( nullptr, 0, format_, ap ) ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/contrib/replxx/src/replxx.cxx:378:18: warning: function 'int replxx_print(Replxx*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 378 | vsnprintf( buf.get(), static_cast<size_t>( size + 1 ), format_, ap ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/nix/store/yip89xn7mb3mzsrj77bffxj0idz3kr1k-glib-2.88.3-dev/include/glib-2.0/glib/gstring.h:78:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 74 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 75 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 76 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 77 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 78 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 79 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/libutil/mem_pool.c:1291:75: warning: cast between incompatible function types from 'int (*)(pthread_mutex_t *)' to 'void (*)(void *)' [-Wcast-function-type] 1291 | (rspamd_mempool_destruct_t) pthread_mutex_destroy, res); | ^ -
/build/source/src/libutil/mem_pool.c:1323:75: warning: cast between incompatible function types from 'int (*)(pthread_rwlock_t *)' to 'void (*)(void *)' [-Wcast-function-type] 1323 | (rspamd_mempool_destruct_t) pthread_rwlock_destroy, res); | ^ -
/build/source/src/libutil/sqlite_utils.c:361:24: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 361 | (void) write(lock_fd, &myself, sizeof(myself)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/lua/lua_url.c:449:33: warning: argument 2 null where non-null expected [-Wnonnull] 449 | memcpy(d, rspamd_url_host(url->url), url->url->hostlen); | ^~~~~~ -
/build/source/src/libserver/fuzzy_backend/fuzzy_backend_redis.c:571:16: warning: unused variable 'value' [-Wunused-variable] 571 | gulong value; | ^~~~~ -
/build/source/src/libserver/fuzzy_storage_ratelimit.c:305:17: warning: enumeration value 'RSPAMD_FUZZY_EXT_SENDER_FACTS' not handled in switch [-Wswitch] 305 | switch (ext->ext) { | ^~~~~~ -
/build/source/src/libserver/hyperscan_tools.cxx:709:7: warning: multi-line comment [-Wcomment] 709 | #endif// defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4 \ | ^ -
/build/source/src/libmime/mime_expressions.c:1481:50: warning: '/*' within comment [-Wcomment] 1481 | * 2. MIME structure: a sibling leaf text/* (non-html) part in a
-
/build/source/src/libmime/mime_expressions.c:1514:80: warning: '/*' within comment [-Wcomment] 1514 | /* Check siblings for leaf text/* non-html parts */
-
/build/source/src/libmime/mime_expressions.c:1523:71: warning: '/*' within comment [-Wcomment] 1523 | /* A leaf text/* part that isn't html is a
-
/build/source/src/libmime/scan_result.c:1148:21: warning: variable 'kk' set but not used [-Wunused-but-set-variable] 1148 | const char *kk; | ^~ -
/nix/store/cwn32dkv1iffrhh6sw1gk09nxb10dv17-glibc-2.42-67-dev/include/bits/unistd.h:195:10: warning: '__gethostname_alias' specified size 18446744073709551614 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 195 | return __glibc_fortify (gethostname, __buflen, sizeof (char), | ^ -
/build/source/src/libutil/fpconv_format.c:80:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 80 | digits[i] = '0'; | ^ -
/build/source/test/rspamd_radix_test.c:193:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 193 | val = btrie_lookup(tree, t->addr, t->len * NBBY); | ^ -
/build/source/test/rspamd_radix_test.c:198:29: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 198 | val = btrie_lookup(tree, t->naddr, t->len * NBBY); | ^ -
/build/source/src/libutil/heap.h:223:36: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits] 223 | else if ((new_pri) > old_pri) { \ | ^