2024-04-17 06:34 ftp://ftp.de.debian.org/debian/pool/main/h/hebcal/hebcal_4.31.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8b518bf (2024-04-17 07:27:46 +0200) count: 52 49 elapsed-time: 8.5 7.4 head-timing-info: old-timing-info: head results: hebcal-4.31/dafyomi.c:66:30: style: Parameter 'greg_day' can be declared as pointer to const [constParameterPointer] hebcal-4.31/error.c:37:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hebcal-4.31/error.c:49:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hebcal-4.31/astro.c:212:51: style:inconclusive: Function 'timelib_astro_rise_set_altitude' argument 1 names different: declaration 'time' definition 't_loc'. [funcArgNamesDifferent] hebcal-4.31/timelib.h:931:51: note: Function 'timelib_astro_rise_set_altitude' argument 1 names different: declaration 'time' definition 't_loc'. hebcal-4.31/astro.c:212:51: note: Function 'timelib_astro_rise_set_altitude' argument 1 names different: declaration 'time' definition 't_loc'. hebcal-4.31/astro.c:271:6: style: Variable 't' is assigned a value that is never used. [unreadVariable] hebcal-4.31/astro.c:276:6: style: Variable 't' is assigned a value that is never used. [unreadVariable] hebcal-4.31/common.c:209:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hebcal-4.31/dow.c:172:7: style: Variable 'table' can be declared as pointer to const [constVariablePointer] hebcal-4.31/greg.c:175:11: style: Variable 'timestr' can be declared as pointer to const [constVariablePointer] hebcal-4.31/common.c:198:16: style: Variable 'mmap' can be declared as const array [constVariable] hebcal-4.31/sedra.c:238:53: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:244:53: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:250:61: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:268:58: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:274:65: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:277:64: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:283:64: style: Same value in both branches of ternary operator. [duplicateValueTernary] hebcal-4.31/sedra.c:308:32: style:inconclusive: Function 'sedra' argument 2 names different: declaration 'out_buf' definition 'buf'. [funcArgNamesDifferent] hebcal-4.31/sedra.h:7:36: note: Function 'sedra' argument 2 names different: declaration 'out_buf' definition 'buf'. hebcal-4.31/sedra.c:308:32: note: Function 'sedra' argument 2 names different: declaration 'out_buf' definition 'buf'. hebcal-4.31/start.c:149:60: error: There is an unknown macro here somewhere. Configuration is required. If HEBCAL_LANG_LIST is a macro then please configure it. [unknownMacro] hebcal-4.31/tests/sanity-check.c:37:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] hebcal-4.31/hebcal.c:412:28: style: Local variable 'first_weekday' shadows outer variable [shadowVariable] hebcal-4.31/hebcal.c:50:14: note: Shadowed declaration hebcal-4.31/hebcal.c:412:28: note: Shadow variable hebcal-4.31/hebcal.c:528:17: style: Variable 'holi_start' is assigned a value that is never used. [unreadVariable] hebcal-4.31/tests/sanity-check.c:26:25: style: Parameter 'argv' can be declared as const array [constParameter] hebcal-4.31/timelib.c:69:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] hebcal-4.31/timelib.c:108:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] hebcal-4.31/timelib.c:141:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] hebcal-4.31/timelib.c:283:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hebcal-4.31/timelib.c:111:60: style:inconclusive: Function 'timelib_rel_time_clone' argument 1 names different: declaration 'tz' definition 'rel'. [funcArgNamesDifferent] hebcal-4.31/timelib.h:792:60: note: Function 'timelib_rel_time_clone' argument 1 names different: declaration 'tz' definition 'rel'. hebcal-4.31/timelib.c:111:60: note: Function 'timelib_rel_time_clone' argument 1 names different: declaration 'tz' definition 'rel'. hebcal-4.31/timelib.c:255:64: style:inconclusive: Function 'timelib_strncasecmp' argument 3 names different: declaration 'n' definition 'length'. [funcArgNamesDifferent] hebcal-4.31/timelib_private.h:138:64: note: Function 'timelib_strncasecmp' argument 3 names different: declaration 'n' definition 'length'. hebcal-4.31/timelib.c:255:64: note: Function 'timelib_strncasecmp' argument 3 names different: declaration 'n' definition 'length'. hebcal-4.31/timelib.c:72:40: style: Parameter 't1' can be declared as pointer to const [constParameterPointer] hebcal-4.31/timelib.c:72:58: style: Parameter 't2' can be declared as pointer to const [constParameterPointer] hebcal-4.31/timelib.c:111:60: style: Parameter 'rel' can be declared as pointer to const [constParameterPointer] hebcal-4.31/timelib.c:118:58: style: Parameter 'tz_abbr' can be declared as pointer to const [constParameterPointer] hebcal-4.31/timelib.c:167:48: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] hebcal-4.31/timelib.c:280:38: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] hebcal-4.31/holidays.c:703:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] hebcal-4.31/holidays.c:773:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] hebcal-4.31/holidays.c:405:17: style: Parameter 'hp' can be declared as pointer to const [constParameterPointer] hebcal-4.31/unixtime2tm.c:39:7: style: Variable 'months' can be declared as pointer to const [constVariablePointer] hebcal-4.31/tm2unixtime.c:235:41: style:inconclusive: Function 'timelib_do_normalize' argument 1 names different: declaration 'base' definition 'time'. [funcArgNamesDifferent] hebcal-4.31/timelib.h:597:41: note: Function 'timelib_do_normalize' argument 1 names different: declaration 'base' definition 'time'. hebcal-4.31/tm2unixtime.c:235:41: note: Function 'timelib_do_normalize' argument 1 names different: declaration 'base' definition 'time'. hebcal-4.31/tm2unixtime.c:412:3: style: int result is returned as long long value. If the return value is long long to avoid loss of information, then you have loss of information. [truncLongCastReturn] hebcal-4.31/parse_tz.c:387:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] hebcal-4.31/parse_tz.c:567:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] hebcal-4.31/parse_tz.c:394:2: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hebcal-4.31/parse_tz.c:394:2: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hebcal-4.31/parse_tz.c:394:2: warning: %d in format string (no. 9) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] hebcal-4.31/parse_tz.c:337:74: style: Parameter 'tz' can be declared as pointer to const [constParameterPointer] hebcal-4.31/parse_tz.c:422:65: style: Parameter 'timezone' can be declared as pointer to const [constParameterPointer] hebcal-4.31/parse_tz.c:492:50: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hebcal-4.31/parse_tz.c:671:10: style: Variable 'to' can be declared as pointer to const [constVariablePointer] hebcal-4.31/parse_tz.c:672:10: style: Variable 'tl' can be declared as pointer to const [constVariablePointer] hebcal-4.31/parse_tz.c:674:8: style: Variable 'abbr' can be declared as pointer to const [constVariablePointer] diff: head hebcal-4.31/error.c:49:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head hebcal-4.31/parse_tz.c:337:74: style: Parameter 'tz' can be declared as pointer to const [constParameterPointer] head hebcal-4.31/timelib.c:167:48: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] DONE