Snippets for c-icap 0.6.6 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/c-icap/0.6.6/1.fc46/data/logs/i686/build.log.
-
commands.c:151:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 151 | s = strchr(cmd_line, ' '); | ^ -
types_ops.c:466:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 466 | if ((pstr=strchr(value,'/'))) { | ^ -
service.c:288:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 288 | extension = strrchr(service_file, '.'); | ^ -
cfg_param.c:537:23: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 537 | if ((service_args = strchr(argv[1], '?'))) { | ^ -
info.c:322:9: warning: variable ‘requests’ set but not used [-Wunused-but-set-variable=] 322 | int requests = 0; | ^~~~~~~~ -
c-icap-client.c:470:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=] 470 | ci_debug_printf(1, "Partial modification (Allow 206 response): " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 471 | "use %ld from the original body data\n", 472 | req->i206_use_original_body); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int64_t {aka long long int} -
/usr/include/bits/stdio2.h:68:10: warning: null destination pointer [-Wformat-truncation=] 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -
test_filetype.c:83:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 83 | ci_debug_printf(5, "%s: read %lu bytes\n", fname, bytes); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | size_t {aka unsigned int} -
test_body.c:148:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 148 | ci_debug_printf(7, "written:%lu, read %d (/%lu)\n", written, getback, tryread); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | size_t {aka unsigned int} -
test_body.c:148:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] 148 | ci_debug_printf(7, "written:%lu, read %d (/%lu)\n", written, getback, tryread); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | size_t {aka unsigned int} -
test_atomics.c:178:24: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 178 | ci_debug_printf(1, "Atomic add result : %lu, expect %lu\n", at_c, (long unsigned)(LOOPS * THREADS)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | uint64_t {aka long long unsigned int} -
test_atomics.c:180:24: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 180 | ci_debug_printf(1, "Noninline atomic add result : %lu, expect %lu\n", ni_at_c, (long unsigned)(LOOPS * THREADS)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | uint64_t {aka long long unsigned int} -
test_atomics.c:182:24: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 182 | ci_debug_printf(1, "Noninline inter-process atomic add result : %lu, expect %lu\n", ni_at_c_gl, (long unsigned)(LOOPS * THREADS)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
test_atomics.c:184:24: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 184 | ci_debug_printf(1, "Mutex add result : %lu, expect %lu\n", simple_c, (long unsigned)(LOOPS * THREADS)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
test_atomics_cplusplus.cc:81:24: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 81 | ci_debug_printf(1, "Atomic add result : %lu\n", at_c) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | uint64_t {aka long long unsigned int} -
test_atomics_cplusplus.cc:79:12: warning: ‘operator delete(void*, unsigned int)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 79 | delete threads; | ^~~~~~~