2024-03-27 04:20 ftp://ftp.de.debian.org/debian/pool/main/g/gcal/gcal_4.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 99853e4 (2024-03-27 05:16:23 +0100) count: 393 387 elapsed-time: 12.8 17.5 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 6.74288s (avg. 6.74288s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 3.04001s (avg. 1.01334s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.59873s (avg. 0.532909s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.897687s (avg. 0.299229s - 3 result(s)) valueFlowUninit(tokenlist, errorLogger, settings): 0.753374s (avg. 0.251125s - 3 result(s)) Overall time: 6.91821s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 12.9435s (avg. 12.9435s - 1 result(s)) valueFlowUninit(tokenlist, settings): 8.40044s (avg. 2.80015s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 2.16571s (avg. 0.721904s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.03622s (avg. 0.345405s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.54981s (avg. 0.18327s - 3 result(s)) Overall time: 13.115s head results: gcal-4.1/lib/binary-io.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] gcal-4.1/lib/basename-lgpl.c:64:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] gcal-4.1/lib/alloca.c:122:8: style: union member 'hdr::align' is never used. [unusedStructMember] gcal-4.1/lib/dirname-lgpl.c:38:35: style: Condition 'prefix_length!=0' is always false [knownConditionTrueFalse] gcal-4.1/lib/dirname-lgpl.c:34:26: note: Assignment 'prefix_length=0', assigned value is 0 gcal-4.1/lib/dirname-lgpl.c:38:35: note: Condition 'prefix_length!=0' is always false gcal-4.1/lib/error.c:138:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] gcal-4.1/lib/sig-handler.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] gcal-4.1/lib/fflush.c:97:29: style: Parameter '_GL_UNUSED_PARAMETER' can be declared as pointer to const [constParameterPointer] gcal-4.1/lib/fpurge.c:143:0: error: #error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib." [preprocessorErrorDirective] gcal-4.1/lib/freading.c:71:0: error: #error "Please port gnulib freading.c to your platform!" [preprocessorErrorDirective] gcal-4.1/lib/fseeko.c:110:0: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." [preprocessorErrorDirective] gcal-4.1/lib/getprogname.c:181:0: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] gcal-4.1/lib/gettimeofday.c:143:0: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] gcal-4.1/lib/gl_list.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] gcal-4.1/lib/link.c:146:0: error: #error "This platform lacks a link function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] gcal-4.1/lib/log.c:35:20: style: Same expression on both sides of '/'. [duplicateExpression] gcal-4.1/lib/log10.c:35:20: style: Same expression on both sides of '/'. [duplicateExpression] gcal-4.1/lib/pipe-safer.c:31:17: style: Parameter 'fd' can be declared as const array [constParameter] gcal-4.1/lib/localcharset.c:473:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] gcal-4.1/lib/localcharset.c:464:24: note: Assignment 'locale=NULL', assigned value is 0 gcal-4.1/lib/localcharset.c:473:14: note: Condition 'locale==NULL' is always true gcal-4.1/lib/localcharset.c:184:19: error: Resource handle 'fd' freed twice. [doubleFree] gcal-4.1/lib/localcharset.c:180:20: note: Resource handle 'fd' freed twice. gcal-4.1/lib/localcharset.c:184:19: note: Resource handle 'fd' freed twice. gcal-4.1/lib/rawmemchr.c:132:12: style: Variable 'char_ptr' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/lib/rawmemchr.c:123:12: note: char_ptr is assigned gcal-4.1/lib/rawmemchr.c:132:12: note: char_ptr is overwritten gcal-4.1/lib/regcomp.c:138:5: error: There is an unknown macro here somewhere. Configuration is required. If gettext_noop is a macro then please configure it. [unknownMacro] gcal-4.1/lib/regex_internal.h:206:0: error: #error "Add case for new bitset_word_t size" [preprocessorErrorDirective] gcal-4.1/lib/sigaction.c:55:0: error: #error "Revisit the assumptions made in the sigaction module" [preprocessorErrorDirective] gcal-4.1/lib/spawnattr_destroy.c:24:45: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] gcal-4.1/lib/regex_internal.c:1642:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regex_internal.c:1694:19: style: Variable 'node' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/spawni.c:121:33: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gcal-4.1/lib/spawni.c:323:10: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gcal-4.1/lib/spawni.c:139:35: style:inconclusive: Function 'gl_posix_spawn_internal' argument 2 names different: declaration 'path' definition 'file'. [funcArgNamesDifferent] gcal-4.1/lib/spawn_int.h:59:46: note: Function 'gl_posix_spawn_internal' argument 2 names different: declaration 'path' definition 'file'. gcal-4.1/lib/spawni.c:139:35: note: Function 'gl_posix_spawn_internal' argument 2 names different: declaration 'path' definition 'file'. gcal-4.1/lib/spawni.c:244:34: style: Variable 'action' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/strchrnul.c:138:12: style: Variable 'char_ptr' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/lib/strchrnul.c:129:12: note: char_ptr is assigned gcal-4.1/lib/strchrnul.c:138:12: note: char_ptr is overwritten gcal-4.1/lib/strerror.c:45:7: style: Condition 'msg' is always false [knownConditionTrueFalse] gcal-4.1/lib/strerror.c:44:21: note: Assignment 'msg=NULL', assigned value is 0 gcal-4.1/lib/strerror.c:45:7: note: Condition 'msg' is always false gcal-4.1/lib/strerror_r.c:166:9: style: Condition 'msg' is always false [knownConditionTrueFalse] gcal-4.1/lib/strerror_r.c:164:23: note: Assignment 'msg=NULL', assigned value is 0 gcal-4.1/lib/strerror_r.c:166:9: note: Condition 'msg' is always false gcal-4.1/lib/strerror_r.c:315:13: style: Variable 'errmsg' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/strtol.c:339:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] gcal-4.1/lib/strtol.c:332:11: note: Assignment 'end=NULL', assigned value is 0 gcal-4.1/lib/strtol.c:341:13: note: Assuming that condition 's==end' is not redundant gcal-4.1/lib/strtol.c:313:10: note: Assignment 'save=s', assigned value is 0 gcal-4.1/lib/strtol.c:313:8: note: save is assigned 's' here. gcal-4.1/lib/strtol.c:339:13: note: Null pointer dereference gcal-4.1/lib/tempname.c:263:17: style: Parameter 'tmpl' can be declared as pointer to const. However it seems that 'try_file' is a callback function, if 'tmpl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gcal-4.1/lib/tempname.c:308:17: note: You might need to cast the function pointer here gcal-4.1/lib/tempname.c:263:17: note: Parameter 'tmpl' can be declared as pointer to const gcal-4.1/lib/tempname.c:265:8: style: Variable 'openflags' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/tempname.c:272:16: style: Parameter 'tmpl' can be declared as pointer to const. However it seems that 'try_dir' is a callback function, if 'tmpl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gcal-4.1/lib/tempname.c:312:17: note: You might need to cast the function pointer here gcal-4.1/lib/tempname.c:272:16: note: Parameter 'tmpl' can be declared as pointer to const gcal-4.1/lib/tempname.c:272:34: style: Parameter '_GL_UNUSED' can be declared as pointer to const. However it seems that 'try_dir' is a callback function, if '_GL_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gcal-4.1/lib/tempname.c:312:17: note: You might need to cast the function pointer here gcal-4.1/lib/tempname.c:272:34: note: Parameter '_GL_UNUSED' can be declared as pointer to const gcal-4.1/lib/tempname.c:278:21: style: Parameter 'tmpl' can be declared as pointer to const. However it seems that 'try_nocreate' is a callback function, if 'tmpl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gcal-4.1/lib/tempname.c:316:17: note: You might need to cast the function pointer here gcal-4.1/lib/tempname.c:278:21: note: Parameter 'tmpl' can be declared as pointer to const gcal-4.1/lib/tempname.c:189:10: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] gcal-4.1/lib/spawn-pipe.c:372:7: style: The if condition is the same as the previous if condition [duplicateCondition] gcal-4.1/lib/spawn-pipe.c:369:7: note: First condition gcal-4.1/lib/spawn-pipe.c:372:7: note: Second condition gcal-4.1/lib/spawn-pipe.c:282:29: style: Variable 'actions_allocated' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/lib/spawn-pipe.c:279:21: note: actions_allocated is assigned gcal-4.1/lib/spawn-pipe.c:282:29: note: actions_allocated is overwritten gcal-4.1/lib/spawn-pipe.c:325:39: style: Variable 'attrs_allocated' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/lib/spawn-pipe.c:280:19: note: attrs_allocated is assigned gcal-4.1/lib/spawn-pipe.c:325:39: note: attrs_allocated is overwritten gcal-4.1/lib/xalloc.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] gcal-4.1/lib/wcrtomb.c:28:42: style: Parameter 'ps' can be declared as pointer to const [constParameterPointer] gcal-4.1/src/gcal2txt.c:644:14: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] gcal-4.1/src/gcal2txt.c:553:12: style: Parameter 'argv' can be declared as const array [constParameter] gcal-4.1/src/gcal2txt.c:573:13: style: Variable 'is_regular_file' is assigned a value that is never used. [unreadVariable] gcal-4.1/lib/regexec.c:1439:37: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gcal-4.1/lib/regexec.c:3358:42: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gcal-4.1/lib/regexec.c:3405:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gcal-4.1/lib/regexec.c:1697:11: style: Condition '!naccepted' is always true [knownConditionTrueFalse] gcal-4.1/lib/regexec.c:1681:23: note: Assignment 'naccepted=0', assigned value is 0 gcal-4.1/lib/regexec.c:1697:11: note: Condition '!naccepted' is always true gcal-4.1/lib/regexec.c:3121:11: style: Condition 'naccepted' is always false [knownConditionTrueFalse] gcal-4.1/lib/regexec.c:3076:23: note: Assignment 'naccepted=0', assigned value is 0 gcal-4.1/lib/regexec.c:3121:11: note: Condition 'naccepted' is always false gcal-4.1/lib/regexec.c:847:20: style: Variable 'pstate' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:1364:27: style: Parameter 'regs' can be declared as pointer to const [constParameterPointer] gcal-4.1/lib/regexec.c:1916:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:2027:34: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:2063:38: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:2159:38: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:2626:35: style: Variable 'bkref_ent' can be declared as pointer to const [constVariablePointer] gcal-4.1/lib/regexec.c:3063:51: style: Parameter 'mctx' can be declared as pointer to const [constParameterPointer] gcal-4.1/src/hd-astro.c:1262:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-astro.c:1323:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-astro.c:457:17: style: Condition 'i+2>=dt_table_size' is always false [knownConditionTrueFalse] gcal-4.1/src/hd-astro.c:437:30: note: Assuming that condition 'i+2>=dt_table_size' is not redundant gcal-4.1/src/hd-astro.c:457:17: note: Condition 'i+2>=dt_table_size' is always false gcal-4.1/src/hd-data1.c:353:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:438:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:498:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:655:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:975:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:999:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:1089:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:1311:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:1387:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:1774:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:1919:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data1.c:58:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:58:16: note: Shadow variable gcal-4.1/src/hd-data1.c:283:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:283:16: note: Shadow variable gcal-4.1/src/hd-data1.c:463:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:463:20: note: Shadow variable gcal-4.1/src/hd-data1.c:516:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:516:16: note: Shadow variable gcal-4.1/src/hd-data1.c:569:15: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:569:15: note: Shadow variable gcal-4.1/src/hd-data1.c:805:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:805:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1017:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1017:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1018:16: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1018:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1120:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1120:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1121:16: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1121:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1341:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1341:20: note: Shadow variable gcal-4.1/src/hd-data1.c:1405:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1405:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1502:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1502:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1572:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1572:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1937:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1937:16: note: Shadow variable gcal-4.1/src/hd-data1.c:1938:16: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data1.c:1938:16: note: Shadow variable gcal-4.1/src/hd-data2.c:185:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:426:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:550:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:592:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:733:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:1242:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:1344:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:1567:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:2065:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:2570:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:3723:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:3791:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:4081:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data2.c:203:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:203:16: note: Shadow variable gcal-4.1/src/hd-data2.c:257:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:257:16: note: Shadow variable gcal-4.1/src/hd-data2.c:568:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:568:16: note: Shadow variable gcal-4.1/src/hd-data2.c:667:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:667:16: note: Shadow variable gcal-4.1/src/hd-data2.c:832:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:832:16: note: Shadow variable gcal-4.1/src/hd-data2.c:877:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:877:16: note: Shadow variable gcal-4.1/src/hd-data2.c:933:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:933:16: note: Shadow variable gcal-4.1/src/hd-data2.c:972:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:972:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1007:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1007:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1049:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1049:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1101:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1101:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1139:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1139:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1362:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1362:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1419:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1419:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1522:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1522:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1690:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1690:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1853:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1853:16: note: Shadow variable gcal-4.1/src/hd-data2.c:1945:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:1945:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2083:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2083:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2172:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2172:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2201:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2201:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2229:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2229:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2255:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2255:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2280:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2280:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2308:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2308:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2356:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2356:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2382:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2382:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2430:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2430:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2456:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2456:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2491:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2491:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2691:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2691:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2856:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2856:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2885:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2885:16: note: Shadow variable gcal-4.1/src/hd-data2.c:2987:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:2987:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3248:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3248:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3332:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3332:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3412:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3412:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3495:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3495:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3620:12: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3620:12: note: Shadow variable gcal-4.1/src/hd-data2.c:3621:12: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3621:12: note: Shadow variable gcal-4.1/src/hd-data2.c:3741:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3741:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3809:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3809:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3887:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3887:16: note: Shadow variable gcal-4.1/src/hd-data2.c:3960:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:3960:16: note: Shadow variable gcal-4.1/src/hd-data2.c:4065:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data2.c:4065:16: note: Shadow variable gcal-4.1/src/file-io.c:1591:7: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/file-io.c:1618:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/file-io.c:278:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/file-io.c:1332:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/file-io.c:228:17: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] gcal-4.1/src/file-io.c:216:8: note: outer condition: is_absolute_filename gcal-4.1/src/file-io.c:228:17: note: identical inner condition: is_absolute_filename gcal-4.1/src/file-io.c:1464:8: warning: %s in format string (no. 9) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] gcal-4.1/src/file-io.c:1464:8: warning: %d in format string (no. 10) requires 'int' but the argument type is 'char *'. [invalidPrintfArgType_sint] gcal-4.1/src/file-io.c:1464:8: warning: %s in format string (no. 11) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] gcal-4.1/src/file-io.c:1464:8: warning: %d in format string (no. 12) requires 'int' but the argument type is 'char *'. [invalidPrintfArgType_sint] gcal-4.1/src/file-io.c:1464:8: warning: fprintf format string requires 12 parameters but 13 are given. [wrongPrintfScanfArgNum] gcal-4.1/src/file-io.c:552:10: warning: Possible null pointer dereference: ptr_pool [nullPointer] gcal-4.1/src/file-io.c:1315:27: note: Assignment 'ptr_pool=(char*)NULL', assigned value is 0 gcal-4.1/src/file-io.c:1322:47: note: Calling function 'file_read_line', 5th argument 'ptr_pool' value is 0 gcal-4.1/src/file-io.c:537:9: note: Assuming condition is false gcal-4.1/src/file-io.c:552:10: note: Null pointer dereference gcal-4.1/src/file-io.c:1450:10: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/file-io.c:1442:10: note: len is assigned gcal-4.1/src/file-io.c:1450:10: note: len is overwritten gcal-4.1/src/file-io.c:1450:10: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/file-io.c:1449:12: note: len is assigned gcal-4.1/src/file-io.c:1450:10: note: len is overwritten gcal-4.1/src/file-io.c:1472:10: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/file-io.c:1463:10: note: len is assigned gcal-4.1/src/file-io.c:1472:10: note: len is overwritten gcal-4.1/src/file-io.c:1472:10: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/file-io.c:1471:12: note: len is assigned gcal-4.1/src/file-io.c:1472:10: note: len is overwritten gcal-4.1/src/file-io.c:1297:9: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] gcal-4.1/src/file-io.c:1423:9: style: Parameter 'argv' can be declared as const array [constParameter] gcal-4.1/src/file-io.c:1628:9: style: Parameter 'is_first' can be declared as pointer to const [constParameterPointer] gcal-4.1/src/file-io.c:152:12: style: Variable 'ptr_char' is assigned a value that is never used. [unreadVariable] gcal-4.1/src/hd-data.c:1178:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:1247:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:1455:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:1514:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:1601:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2174:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2401:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2629:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2685:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2737:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2931:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:3581:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:3667:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4129:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4302:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4409:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4590:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4749:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:4814:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data.c:2595:18: style: Redundant condition: do_coptic. '!do_coptic || (do_coptic && year>283)' is equivalent to '!do_coptic || year>283' [redundantCondition] gcal-4.1/src/hd-data.c:2610:17: style: Redundant condition: do_coptic. '!do_coptic || (do_coptic && n>283)' is equivalent to '!do_coptic || n>283' [redundantCondition] gcal-4.1/src/hd-data.c:4321:18: style: Redundant condition: !do_egyptic. 'do_egyptic || (!do_egyptic && year>551)' is equivalent to 'do_egyptic || year>551' [redundantCondition] gcal-4.1/src/hd-data.c:4341:17: style: Redundant condition: !do_egyptic. 'do_egyptic || (!do_egyptic && n>551)' is equivalent to 'do_egyptic || n>551' [redundantCondition] gcal-4.1/src/hd-data.c:4577:27: style: Redundant condition: !is_new_calendar. 'is_new_calendar || (!is_new_calendar && year!=1924)' is equivalent to 'is_new_calendar || year!=1924' [redundantCondition] gcal-4.1/src/hd-data.c:4588:27: style: Redundant condition: !is_new_calendar. 'is_new_calendar || (!is_new_calendar && year!=1924)' is equivalent to 'is_new_calendar || year!=1924' [redundantCondition] gcal-4.1/src/hd-data.c:1756:33: style: The if condition is the same as the previous if condition [duplicateCondition] gcal-4.1/src/hd-data.c:1735:33: note: First condition gcal-4.1/src/hd-data.c:1756:33: note: Second condition gcal-4.1/src/hd-data.c:2419:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data.c:2419:16: note: Shadow variable gcal-4.1/src/hd-data.c:2420:16: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data.c:2420:16: note: Shadow variable gcal-4.1/src/hd-data.c:1162:14: style: Variable 'the_text' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/hd-data.c:1185:12: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] gcal-4.1/src/hd-data.c:1283:14: style: Variable 'ptr_txt' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/hd-data.c:1284:14: style: Variable 'ptr2_txt' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/hd-data4.c:397:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:514:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:755:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:1889:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:2645:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:2730:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:2826:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data4.c:115:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:115:16: note: Shadow variable gcal-4.1/src/hd-data4.c:213:16: style: Local variable 'd' shadows outer variable [shadowVariable] gcal-4.1/src/hd-data4.c:179:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:213:16: note: Shadow variable gcal-4.1/src/hd-data4.c:444:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:444:16: note: Shadow variable gcal-4.1/src/hd-data4.c:659:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:659:16: note: Shadow variable gcal-4.1/src/hd-data4.c:773:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:773:16: note: Shadow variable gcal-4.1/src/hd-data4.c:814:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:814:16: note: Shadow variable gcal-4.1/src/hd-data4.c:848:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:848:16: note: Shadow variable gcal-4.1/src/hd-data4.c:934:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:934:16: note: Shadow variable gcal-4.1/src/hd-data4.c:1134:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:1134:16: note: Shadow variable gcal-4.1/src/hd-data4.c:1595:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:1595:16: note: Shadow variable gcal-4.1/src/hd-data4.c:1934:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:1934:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2146:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2146:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2272:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2272:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2404:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2404:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2531:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2531:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2581:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2581:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2606:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2606:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2684:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2684:16: note: Shadow variable gcal-4.1/src/hd-data4.c:2982:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data4.c:2982:16: note: Shadow variable gcal-4.1/src/hd-data5.c:296:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:338:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:488:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1213:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1248:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1341:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1435:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1481:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1565:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1654:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1818:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1921:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:1955:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:2052:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:2178:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:2209:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:2358:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:2509:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:3253:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data5.c:3440:11: style: Variable 'day' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/hd-data5.c:3439:5: note: day is assigned gcal-4.1/src/hd-data5.c:3440:11: note: day is overwritten gcal-4.1/src/hd-data5.c:71:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:71:16: note: Shadow variable gcal-4.1/src/hd-data5.c:201:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:201:20: note: Shadow variable gcal-4.1/src/hd-data5.c:653:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:653:16: note: Shadow variable gcal-4.1/src/hd-data5.c:711:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:711:16: note: Shadow variable gcal-4.1/src/hd-data5.c:972:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:972:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1007:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1007:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1049:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1049:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1104:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1104:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1204:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1204:20: note: Shadow variable gcal-4.1/src/hd-data5.c:1240:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1240:20: note: Shadow variable gcal-4.1/src/hd-data5.c:1289:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1289:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1320:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1320:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1359:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1359:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1415:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1415:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1453:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1453:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1543:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1543:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1583:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1583:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1613:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1613:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1672:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1672:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1768:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1768:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1812:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1812:20: note: Shadow variable gcal-4.1/src/hd-data5.c:1884:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1884:16: note: Shadow variable gcal-4.1/src/hd-data5.c:1915:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1915:20: note: Shadow variable gcal-4.1/src/hd-data5.c:1949:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1949:20: note: Shadow variable gcal-4.1/src/hd-data5.c:1993:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:1993:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2046:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2046:20: note: Shadow variable gcal-4.1/src/hd-data5.c:2157:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2157:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2203:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2203:20: note: Shadow variable gcal-4.1/src/hd-data5.c:2267:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2267:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2312:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2312:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2349:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2349:20: note: Shadow variable gcal-4.1/src/hd-data5.c:2376:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2376:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2466:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2466:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2698:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2698:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2750:12: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2750:12: note: Shadow variable gcal-4.1/src/hd-data5.c:2751:12: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2751:12: note: Shadow variable gcal-4.1/src/hd-data5.c:2860:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2860:16: note: Shadow variable gcal-4.1/src/hd-data5.c:2911:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:2911:16: note: Shadow variable gcal-4.1/src/hd-data5.c:3057:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:3057:16: note: Shadow variable gcal-4.1/src/hd-data5.c:3166:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:3166:16: note: Shadow variable gcal-4.1/src/hd-data5.c:3379:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:3379:16: note: Shadow variable gcal-4.1/src/hd-data5.c:3475:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data5.c:3475:16: note: Shadow variable gcal-4.1/src/hd-data3.c:114:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:446:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:905:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:1007:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:1653:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:1735:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2320:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2442:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2619:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2702:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2751:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:3368:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:3395:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:4016:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:4302:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-data3.c:2672:7: style: Variable 'day' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/hd-data3.c:2669:9: note: day is assigned gcal-4.1/src/hd-data3.c:2672:7: note: day is overwritten gcal-4.1/src/hd-data3.c:3427:7: style: Variable 'day' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/hd-data3.c:3423:7: note: day is assigned gcal-4.1/src/hd-data3.c:3427:7: note: day is overwritten gcal-4.1/src/hd-data3.c:132:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:132:16: note: Shadow variable gcal-4.1/src/hd-data3.c:426:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:426:16: note: Shadow variable gcal-4.1/src/hd-data3.c:522:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:522:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1094:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1094:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1184:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1184:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1245:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1245:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1281:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1281:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1386:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1386:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1439:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1439:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1464:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1464:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1502:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1502:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1544:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1544:16: note: Shadow variable gcal-4.1/src/hd-data3.c:1753:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:1753:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2146:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2146:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2220:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2220:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2278:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2278:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2637:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2637:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2739:20: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2739:20: note: Shadow variable gcal-4.1/src/hd-data3.c:2836:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2836:16: note: Shadow variable gcal-4.1/src/hd-data3.c:2885:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:2885:16: note: Shadow variable gcal-4.1/src/hd-data3.c:3126:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:3126:16: note: Shadow variable gcal-4.1/src/hd-data3.c:3174:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:3174:16: note: Shadow variable gcal-4.1/src/hd-data3.c:3258:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:3258:16: note: Shadow variable gcal-4.1/src/hd-data3.c:3413:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:3413:16: note: Shadow variable gcal-4.1/src/hd-data3.c:3682:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:3682:16: note: Shadow variable gcal-4.1/src/hd-data3.c:4197:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:4197:16: note: Shadow variable gcal-4.1/src/hd-data3.c:4255:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/hd-data3.c:4255:16: note: Shadow variable gcal-4.1/src/help.c:2267:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/help.c:2603:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/help.c:233:19: style: Variable 'ptr_date_format' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/help.c:236:14: style: Variable 'ptr_env' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/help.c:2393:41: style: Variable 'ptr_cc_holidays' is assigned a value that is never used. [unreadVariable] gcal-4.1/src/help.c:2394:18: style: Variable 'i' is assigned a value that is never used. [unreadVariable] gcal-4.1/src/print.c:1370:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/print.c:762:5: style: Redundant condition: !special_calsheet_flag. 'special_calsheet_flag || (!special_calsheet_flag && i==1)' is equivalent to 'special_calsheet_flag || i==1' [redundantCondition] gcal-4.1/src/print.c:767:7: style: Redundant condition: is_marked. '!is_marked || (is_marked && (ehls1s.len>1)||(ehls2s.len>1))' is equivalent to '!is_marked || (ehls1s.len>1)||(ehls2s.len>1)' [redundantCondition] gcal-4.1/src/print.c:1279:9: style: Redundant condition: !special_calsheet_flag. 'special_calsheet_flag || (!special_calsheet_flag && i==1)' is equivalent to 'special_calsheet_flag || i==1' [redundantCondition] gcal-4.1/src/print.c:667:12: style: Variable 'j' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/print.c:664:8: note: j is assigned gcal-4.1/src/print.c:667:12: note: j is overwritten gcal-4.1/src/print.c:1167:9: style: Variable 'j' is reassigned a value before the old one has been used. [redundantAssignment] gcal-4.1/src/print.c:1164:12: note: j is assigned gcal-4.1/src/print.c:1167:9: note: j is overwritten gcal-4.1/src/gcal.c:6790:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/gcal.c:7148:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/gcal.c:7396:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/gcal.c:1895:14: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] gcal-4.1/src/gcal.c:2195:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:3233:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:3234:32: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:3724:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4071:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4191:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4312:21: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4315:7: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4376:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:4394:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:6636:9: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:6637:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:7367:7: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/gcal.c:6797:12: style: Parameter 'argv' can be declared as const array [constParameter] gcal-4.1/src/tty.c:711:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/tty.c:1682:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/tty.c:1714:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/tty.c:1716:42: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/tty.c:562:34: style: Condition 'highlight_flag' is always true [knownConditionTrueFalse] gcal-4.1/src/tcal.c:592:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/tcal.c:587:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gcal-4.1/src/tcal.c:814:14: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] gcal-4.1/src/tcal.c:880:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gcal-4.1/src/tcal.c:903:5: style: Redundant condition: ptr_char!=(char*)NULL. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] gcal-4.1/src/tcal.c:582:19: style: Variable 'sys_date' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/tcal.c:622:14: style: Variable 'gcal_prgr' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/txt2gcal.c:645:14: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] gcal-4.1/src/txt2gcal.c:553:12: style: Parameter 'argv' can be declared as const array [constParameter] gcal-4.1/src/txt2gcal.c:572:13: style: Variable 'is_regular_file' is assigned a value that is never used. [unreadVariable] gcal-4.1/src/utils.c:206:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/utils.c:1065:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/utils.c:2080:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/utils.c:620:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gcal-4.1/src/utils.c:1581:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/utils.c:1581:16: note: Shadow variable gcal-4.1/src/utils.c:1932:16: style: Local variable 'day' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:115:12: note: Shadowed declaration gcal-4.1/src/utils.c:1932:16: note: Shadow variable gcal-4.1/src/utils.c:1933:16: style: Local variable 'month' shadows outer variable [shadowVariable] gcal-4.1/src/globals.h:148:12: note: Shadowed declaration gcal-4.1/src/utils.c:1933:16: note: Shadow variable gcal-4.1/src/utils.c:614:19: style: Variable 'sys_date' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/utils.c:1320:16: style: Variable 'name' can be declared as const array [constVariable] gcal-4.1/src/utils.c:1353:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] gcal-4.1/src/hd-use.c:2028:23: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] gcal-4.1/src/hd-use.c:2115:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-use.c:2292:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gcal-4.1/src/hd-use.c:2060:9: style: Condition 'hd_legal_days_only' is always true [knownConditionTrueFalse] gcal-4.1/src/hd-use.c:726:14: style: Variable 'ptr_char' can be declared as pointer to const [constVariablePointer] diff: head gcal-4.1/lib/fflush.c:97:29: style: Parameter '_GL_UNUSED_PARAMETER' can be declared as pointer to const [constParameterPointer] head gcal-4.1/lib/pipe-safer.c:31:17: style: Parameter 'fd' can be declared as const array [constParameter] head gcal-4.1/lib/regexec.c:3063:51: style: Parameter 'mctx' can be declared as pointer to const [constParameterPointer] head gcal-4.1/lib/spawnattr_destroy.c:24:45: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] head gcal-4.1/lib/tempname.c:272:34: style: Parameter '_GL_UNUSED' can be declared as pointer to const. However it seems that 'try_dir' is a callback function, if '_GL_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gcal-4.1/lib/tempname.c:312:17: note: You might need to cast the function pointer here gcal-4.1/lib/tempname.c:272:34: note: Parameter '_GL_UNUSED' can be declared as pointer to const head gcal-4.1/src/file-io.c:1628:9: style: Parameter 'is_first' can be declared as pointer to const [constParameterPointer] 2.13.0 gcal-4.1/src/hd-astro.c:457:17: style: Condition 'i+2>=dt_table_size' is always false [knownConditionTrueFalse] gcal-4.1/src/hd-astro.c:437:30: note: Assuming condition 'i+2>=dt_table_size' is false gcal-4.1/src/hd-astro.c:457:17: note: Condition 'i+2>=dt_table_size' is always false head gcal-4.1/src/hd-astro.c:457:17: style: Condition 'i+2>=dt_table_size' is always false [knownConditionTrueFalse] gcal-4.1/src/hd-astro.c:437:30: note: Assuming that condition 'i+2>=dt_table_size' is not redundant gcal-4.1/src/hd-astro.c:457:17: note: Condition 'i+2>=dt_table_size' is always false DONE