Snippets for cunit-original 2.1.3 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/cunit/2.1.3_3/150amd64-default.log.
-
MyMem.c:363:59: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] 363 | fprintf(pFile, "\n <MD_SIZE> %u </MD_SIZE>", pTempEvent->Size); | ~~ ^~~~~~~~~~~~~~~~ | %zu -
TestDB.c:1408:12: warning: variable 'pTest1' set but not used [-Wunused-but-set-variable] 1408 | CU_pTest pTest1 = NULL; | ^ -
TestDB.c:1409:12: warning: variable 'pTest2' set but not used [-Wunused-but-set-variable] 1409 | CU_pTest pTest2 = NULL; | ^ -
TestDB.c:1410:12: warning: variable 'pTest3' set but not used [-Wunused-but-set-variable] 1410 | CU_pTest pTest3 = NULL; | ^ -
TestDB.c:1411:12: warning: variable 'pTest4' set but not used [-Wunused-but-set-variable] 1411 | CU_pTest pTest4 = NULL; | ^ -
TestDB.c:1412:12: warning: variable 'pTest5' set but not used [-Wunused-but-set-variable] 1412 | CU_pTest pTest5 = NULL; | ^ -
TestDB.c:1413:12: warning: variable 'pTest6' set but not used [-Wunused-but-set-variable] 1413 | CU_pTest pTest6 = NULL; | ^ -
TestDB.c:1414:12: warning: variable 'pTest7' set but not used [-Wunused-but-set-variable] 1414 | CU_pTest pTest7 = NULL; | ^ -
TestDB.c:1415:12: warning: variable 'pTest8' set but not used [-Wunused-but-set-variable] 1415 | CU_pTest pTest8 = NULL; | ^ -
TestDB.c:1416:12: warning: variable 'pTest9' set but not used [-Wunused-but-set-variable] 1416 | CU_pTest pTest9 = NULL; | ^ -
TestDB.c:1417:12: warning: variable 'pTest10' set but not used [-Wunused-but-set-variable] 1417 | CU_pTest pTest10 = NULL; | ^ -
TestRun.c:614:30: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 614 | snprintf(result, len, "%*s%*s%*s%*s%*s%*s%*s\n" /* if you change this, be sure */ | ~~^ 615 | "%*s%*s%*u%*u%*s%*u%*u\n" /* to change the calculation of */ 616 | "%*s%*s%*u%*u%*u%*u%*u\n" /* len above! */ 617 | "%*s%*s%*u%*u%*u%*u%*s\n\n" 618 | "%*s%8.3f%*s", 619 | width[0], _("Run Summary:"), | ~~~~~~~~ -
TestRun.c:1405:13: warning: variable 'pTest4' set but not used [-Wunused-but-set-variable] 1405 | CU_pTest pTest4 = NULL; | ^ -
TestRun.c:2117:12: warning: variable 'pTest6' set but not used [-Wunused-but-set-variable] 2117 | CU_pTest pTest6 = NULL; | ^ -
TestRun.c:2118:12: warning: variable 'pTest7' set but not used [-Wunused-but-set-variable] 2118 | CU_pTest pTest7 = NULL; | ^ -
TestRun.c:2121:12: warning: variable 'pTest10' set but not used [-Wunused-but-set-variable] 2121 | CU_pTest pTest10 = NULL; | ^ -
TestRun.c:2122:12: warning: variable 'pTest11' set but not used [-Wunused-but-set-variable] 2122 | CU_pTest pTest11 = NULL; | ^ -
../../../CUnit/Headers/Automated.h:90:42: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 90 | const char *CU_automated_package_name_get(); | ^ | void -
Automated.c:166:35: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 166 | CU_ErrorCode CU_list_tests_to_file() | ^ | void -
Automated.c:765:42: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 765 | const char *CU_automated_package_name_get() | ^ | void -
Console.c:504:24: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n", | ~~^ 505 | width[0], _("#"), | ~~~~~~~~ -
Console.c:514:26: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s", | ~~^ 515 | width[0], i, | ~~~~~~~~ -
Console.c:560:24: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 560 | fprintf(stdout, "\n%*s %-*s%*s\n", | ~~^ 561 | width[0], _("#"), | ~~~~~~~~ -
Console.c:569:26: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 569 | fprintf(stdout, "\n%*u. %-*.*s%*s", | ~~^ 570 | width[0], uiCount, | ~~~~~~~~ -
Curses.c:741:41: warning: data argument not used by format string [-Wformat-extra-args] 739 | snprintf(szTemp, STRING_LENGTH, "%s", | ~~~~ 740 | _("Enter number of test to select (1-%u) : "), 741 | pRegistry->uiNumberOfSuites); | ^ -
Curses.c:774:43: warning: data argument not used by format string [-Wformat-extra-args] 772 | snprintf(szTemp, STRING_LENGTH, "%s", | ~~~~ 773 | _("Enter number of test to select (1-%u) : "), 774 | pRegistry->uiNumberOfSuites); | ^ -
Curses.c:955:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 955 | mvwprintw(details_pad.pPad, 0, 0, szTemp); | ^~~~~~ -
Curses.c:959:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 959 | mvwprintw(details_pad.pPad, 2, 0, szTemp); | ^~~~~~ -
Curses.c:1008:38: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s", | ~~^ 1009 | width[0], _("#"), | ~~~~~~~~ -
Curses.c:1019:40: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s", | ~~^ 1020 | width[0], i+1, | ~~~~~~~~ -
Curses.c:1071:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1071 | mvwprintw(details_pad.pPad, 0, 0, szTemp); | ^~~~~~ -
Curses.c:1074:15: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 1074 | "%*s %-*s%*s", | ~~^ 1075 | width[0], _("#"), | ~~~~~~~~ -
Curses.c:1078:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1078 | mvwprintw(details_pad.pPad, 1, 0, szTemp); | ^~~~~~ -
Curses.c:1085:17: warning: field width should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] 1085 | "%*u. %-*.*s%*s", | ~~^ 1086 | width[0], i + 1, | ~~~~~~~~ -
Curses.c:1161:39: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 1161 | mvwprintw(details_pad.pPad, 2, 0, szTemp); | ^~~~~~ -
test_cunit.c:56:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 56 | int main() | ^ | void -
/wrkdirs/usr/ports/devel/cunit/work/CUnit-2.1-3/CUnit/Headers/Automated.h:90:42: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 90 | const char *CU_automated_package_name_get(); | ^ | void