Task #75218 - added.err
back to task #75218download
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc2/avahi-core/cname-test.c:178: warning[invalidPrintfArgType_sint]: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 176| avahi_test_add_cname("X.local", "C1.local");
# 177| for (i=1; i<25; i++) {
# 178|-> snprintf(from, sizeof(from), "C%d.local", i);
# 179| snprintf(to, sizeof(to), "C%d.local", i+1);
# 180| avahi_test_add_cname(from, to);
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc2/avahi-core/cname-test.c:179: warning[invalidPrintfArgType_sint]: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 177| for (i=1; i<25; i++) {
# 178| snprintf(from, sizeof(from), "C%d.local", i);
# 179|-> snprintf(to, sizeof(to), "C%d.local", i+1);
# 180| avahi_test_add_cname(from, to);
# 181| }
Error: CPPCHECK_WARNING (CWE-686):
avahi-0.9.rc2/avahi-core/cname-test.c:182: warning[invalidPrintfArgType_sint]: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
# 180| avahi_test_add_cname(from, to);
# 181| }
# 182|-> snprintf(from, sizeof(from), "C%d.local", i);
# 183| avahi_test_add_cname(from, "Y.local");
# 184| avahi_test_add_a("Y.local", "192.168.50.99", 2);
Error: CPPCHECK_WARNING (CWE-561):
avahi-0.9.rc2/avahi-core/cname-test.c:342: style[duplicateBreak]: Consecutive return, break, continue, goto or throw statements are unnecessary.
# 340| printf("Usage: %s [--list] [test_name]\n", argv[0]);
# 341| return run_all();
# 342|-> return 1;
# 343| }
# 344|