2024-04-22 07:59 ftp://ftp.de.debian.org/debian/pool/main/s/srg/srg_1.3.6.orig.tar.gz 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 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 178 178 elapsed-time: 3.5 3.6 head-timing-info: old-timing-info: head results: config.lexer.c:688:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] config.lexer.c:1061:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] config.lexer.c:1245:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] config.lexer.c:1392:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] config.lexer.c:1630:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] config.lexer.l:30:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] config.lexer.c:1027:27: warning: Possible null pointer dereference: b [nullPointer] config.lexer.c:1024:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 config.lexer.c:1027:27: note: Null pointer dereference config.lexer.c:1029:9: warning: Possible null pointer dereference: b [nullPointer] config.lexer.c:1024:24: note: Assignment 'b=(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL', assigned value is 0 config.lexer.c:1029:9: note: Null pointer dereference config.lexer.c:1396:2: warning: Possible null pointer dereference: b [nullPointer] config.lexer.c:1285:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 config.lexer.c:1396:2: note: Null pointer dereference config.lexer.c:1397:2: warning: Possible null pointer dereference: b [nullPointer] config.lexer.c:1285:17: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 config.lexer.c:1397:2: note: Null pointer dereference config.lexer.c:1061:3: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] config.lexer.c:1061:3: note: c is initialized config.lexer.c:1061:3: note: c is overwritten config.lexer.c:1137:59: style:inconclusive: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. [funcArgNamesDifferent] config.lexer.c:357:54: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. config.lexer.c:1137:59: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. config.lexer.c:1160:49: style:inconclusive: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. [funcArgNamesDifferent] config.lexer.c:543:38: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. config.lexer.c:1160:49: note: Function 'yyunput' argument 2 names different: declaration 'buf_ptr' definition 'yy_bp'. config.lexer.c:1581:48: style:inconclusive: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. [funcArgNamesDifferent] config.lexer.c:310:47: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. config.lexer.c:1581:48: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. config.lexer.c:1594:48: style:inconclusive: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. [funcArgNamesDifferent] config.lexer.c:311:46: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. config.lexer.c:1594:48: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. config.lexer.c:1594:62: style:inconclusive: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. [funcArgNamesDifferent] config.lexer.c:311:56: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. config.lexer.c:1594:62: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. config.lexer.c:1726:24: style:inconclusive: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. [funcArgNamesDifferent] config.lexer.c:509:23: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. config.lexer.c:1726:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition 'bdebug'. config.lexer.c:974:17: style: Variable 'source' can be declared as pointer to const [constVariablePointer] config.lexer.c:1175:18: style: Variable 'source' can be declared as pointer to const [constVariablePointer] config.lexer.c:1594:48: style: Parameter 'yybytes' can be declared as pointer to const [constParameterPointer] config.lexer.c:1628:43: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] config.lexer.l:28:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] config.parser.c:1043:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] srg-1.3.6/libconfig/libconfig.c:13:26: style:inconclusive: Function 'set_config_int' argument 1 names different: declaration 'key' definition 'option'. [funcArgNamesDifferent] srg-1.3.6/libconfig/config_internal.h:4:26: note: Function 'set_config_int' argument 1 names different: declaration 'key' definition 'option'. srg-1.3.6/libconfig/libconfig.c:13:26: note: Function 'set_config_int' argument 1 names different: declaration 'key' definition 'option'. srg-1.3.6/libconfig/libconfig.c:33:26: style:inconclusive: Function 'set_config_str' argument 1 names different: declaration 'key' definition 'option'. [funcArgNamesDifferent] srg-1.3.6/libconfig/config_internal.h:5:26: note: Function 'set_config_str' argument 1 names different: declaration 'key' definition 'option'. srg-1.3.6/libconfig/libconfig.c:33:26: note: Function 'set_config_str' argument 1 names different: declaration 'key' definition 'option'. srg-1.3.6/libconfig/libconfig.c:13:26: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] srg-1.3.6/libconfig/libconfig.c:33:26: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] srg-1.3.6/libconfig/libconfig.c:54:41: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] srg-1.3.6/src/LocationReport.cc:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] srg-1.3.6/src/LocationReport.cc:82:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mName [valueFlowBailoutIncompleteVar] srg-1.3.6/src/LocationReport.cc:247:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stats [valueFlowBailoutIncompleteVar] srg-1.3.6/src/LocationReport.cc:116:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:117:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:118:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:120:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:121:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:122:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/LocationReport.cc:206:48: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/LocationReport.cc:217:3: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/LocationReport.cc:219:3: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/Report.cc:32:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mName [valueFlowBailoutIncompleteVar] srg-1.3.6/src/Report.cc:40:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mName [valueFlowBailoutIncompleteVar] srg-1.3.6/src/Report.cc:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] srg-1.3.6/src/Report.cc:72:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stats [valueFlowBailoutIncompleteVar] srg-1.3.6/src/Report.cc:85:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable connects [valueFlowBailoutIncompleteVar] srg-1.3.6/src/Report.cc:97:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mName [valueFlowBailoutIncompleteVar] srg-1.3.6/src/SiteReport.cc:41:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] srg-1.3.6/src/SiteReport.cc:75:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mName [valueFlowBailoutIncompleteVar] srg-1.3.6/src/SiteReport.cc:323:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable connects [valueFlowBailoutIncompleteVar] srg-1.3.6/src/SiteReport.cc:356:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stats [valueFlowBailoutIncompleteVar] srg-1.3.6/src/SiteReport.cc:114:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:115:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:116:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:118:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:119:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:120:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/SiteReport.cc:165:3: error: fprintf format string requires 2 parameters but only 0 are given. [wrongPrintfScanfArgNum] srg-1.3.6/src/SiteReport.cc:48:32: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/SiteReport.cc:71:18: style: Variable 'percentin' is assigned a value that is never used. [unreadVariable] srg-1.3.6/src/SiteReport.cc:72:19: style: Variable 'percentout' is assigned a value that is never used. [unreadVariable] srg-1.3.6/src/SiteReport.cc:188:18: style: Variable 'timespent' is assigned a value that is never used. [unreadVariable] srg-1.3.6/src/SiteReport.cc:189:21: style: Variable 'bytespercent' is assigned a value that is never used. [unreadVariable] srg-1.3.6/src/SiteReport.cc:33:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/SiteReport.cc:204:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/SiteReport.cc:321:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/SiteReport.cc:341:56: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/UserReport.cc:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] srg-1.3.6/src/UserReport.cc:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minimumConnects [valueFlowBailoutIncompleteVar] srg-1.3.6/src/UserReport.cc:98:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable singleUserMode [valueFlowBailoutIncompleteVar] srg-1.3.6/src/UserReport.cc:362:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stats [valueFlowBailoutIncompleteVar] srg-1.3.6/src/UserReport.cc:141:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:142:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:143:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:145:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:146:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:147:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/UserReport.cc:117:51: error: Dereferencing 't' after it is deallocated / released [deallocuse] srg-1.3.6/src/UserReport.cc:49:24: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/UserReport.cc:34:48: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/UserReport.cc:72:48: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/UserReport.cc:230:48: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/UserReport.cc:345:48: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/configuration.cc:52:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable progname [valueFlowBailoutIncompleteVar] srg-1.3.6/src/configuration.cc:102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_STR [valueFlowBailoutIncompleteVar] srg-1.3.6/src/configuration.cc:511:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] srg-1.3.6/src/configuration.cc:461:26: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/configuration.cc:497:27: style: Checking if unsigned expression 'strlen(srg.accessLog)' is less than zero. [unsignedLessThanZero] srg-1.3.6/src/configuration.cc:131:23: style: Variable 'long_options' can be declared as const array [constVariable] srg-1.3.6/src/configuration.cc:461:16: style: Variable 'starttm' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/filterSites.cc:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sitefilter [valueFlowBailoutIncompleteVar] srg-1.3.6/src/filterSites.cc:50:9: style: Variable 'excludeLine' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/filterSites.cc:104:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/filterSites.cc:124:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/ip2user.cc:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ip2user [valueFlowBailoutIncompleteVar] srg-1.3.6/src/ip2user.cc:49:9: style: Variable 'ipLine' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/ip2user.cc:92:54: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:181:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:251:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:305:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:405:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:474:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:498:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BY_NONE [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:615:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:938:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:1048:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:1158:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/main.cc:472:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:474:35: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] srg-1.3.6/src/main.cc:632:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:633:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:634:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:636:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:637:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:638:4: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:963:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] srg-1.3.6/src/main.cc:1045:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] srg-1.3.6/src/main.cc:1059:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] srg-1.3.6/src/main.cc:1162:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] srg-1.3.6/src/main.cc:1060:15: style: Condition 'direntp==NULL' is always false [knownConditionTrueFalse] srg-1.3.6/src/main.cc:1163:15: style: Condition 'direntp==NULL' is always false [knownConditionTrueFalse] srg-1.3.6/src/main.cc:746:9: error: fprintf format string requires 2 parameters but only 0 are given. [wrongPrintfScanfArgNum] srg-1.3.6/src/main.cc:248:9: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/main.cc:566:24: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/main.cc:1086:4: style: Statements following noreturn function 'exit()' will never be executed. [unreachableCode] srg-1.3.6/src/main.cc:371:23: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] srg-1.3.6/src/main.cc:472:14: style: Variable 'tmtstamp' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:556:9: style: Variable 'tgroup' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:587:29: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] srg-1.3.6/src/main.cc:929:17: style: Variable 'direntp' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:1037:17: style: Variable 'direntp' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:1078:9: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:1153:17: style: Variable 'direntp' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/main.cc:802:13: style: Variable 'total' is assigned a value that is never used. [unreadVariable] srg-1.3.6/src/main.cc:142:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:170:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:209:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:592:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:697:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:775:50: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:1002:52: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/main.cc:1024:52: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] srg-1.3.6/src/output.cc:30:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outputDir [valueFlowBailoutIncompleteVar] srg-1.3.6/src/output.cc:83:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable resourceDir [valueFlowBailoutIncompleteVar] srg-1.3.6/src/output.cc:123:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outputURL [valueFlowBailoutIncompleteVar] srg-1.3.6/src/output.cc:178:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outputURL [valueFlowBailoutIncompleteVar] srg-1.3.6/src/output.cc:102:17: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/output.cc:103:10: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/parseURL.cc:225:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] srg-1.3.6/src/parseURL.cc:40:8: style: Variable 't1' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/parseURL.cc:41:8: style: Variable 't2' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/parseURL.cc:288:31: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] srg-1.3.6/src/utils.cc:140:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable month_names [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:172:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:222:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:265:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:324:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:495:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outputDir [valueFlowBailoutIncompleteVar] srg-1.3.6/src/utils.cc:162:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] srg-1.3.6/src/utils.cc:323:6: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] srg-1.3.6/src/utils.cc:323:6: warning: %i in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] srg-1.3.6/src/utils.cc:323:6: warning: %i in format string (no. 3) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] srg-1.3.6/src/utils.cc:323:6: warning: %i in format string (no. 4) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] srg-1.3.6/src/utils.cc:339:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] srg-1.3.6/src/utils.cc:339:2: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] srg-1.3.6/src/utils.cc:339:2: warning: %i in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] srg-1.3.6/src/utils.cc:339:2: warning: %i in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] srg-1.3.6/src/utils.cc:459:9: warning: Either the condition '!resultCode' is redundant or there is possible null pointer dereference: string. [nullPointerRedundantCheck] srg-1.3.6/src/utils.cc:264:6: note: Assuming that condition '!resultCode' is not redundant srg-1.3.6/src/utils.cc:263:15: note: Assignment to 'resultCode=tmp' srg-1.3.6/src/utils.cc:262:15: note: Calling function 'break_string', 1st argument 'tmp' value is 0 srg-1.3.6/src/utils.cc:459:9: note: Null pointer dereference srg-1.3.6/src/utils.cc:162:8: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/utils.cc:401:15: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/utils.cc:438:27: style: C-style pointer casting [cstyleCast] srg-1.3.6/src/utils.cc:394:7: style: The scope of the variable 'sep_char' can be reduced. [variableScope] srg-1.3.6/src/utils.cc:507:25: style: Checking if unsigned expression 'strlen(fileversion)' is less than zero. [unsignedLessThanZero] srg-1.3.6/src/utils.cc:158:8: style: Variable 'tTime' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/utils.cc:216:8: style: Variable 'resultCode' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/utils.cc:259:8: style: Variable 'resultCode' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/utils.cc:534:8: style: Variable 'space' can be declared as pointer to const [constVariablePointer] srg-1.3.6/src/utils.cc:459:9: warning: Null pointer dereference: string [ctunullpointer] srg-1.3.6/src/utils.cc:221:6: note: Assuming that condition '!resultCode' is not redundant srg-1.3.6/src/utils.cc:220:15: note: Assignment to 'resultCode=tmp' srg-1.3.6/src/utils.cc:219:14: note: Calling function break_string, 1st argument is null srg-1.3.6/src/utils.cc:459:9: note: Dereferencing argument string that is null diff: DONE