2025-05-07 21:47 ftp://ftp.de.debian.org/debian/pool/main/s/sc/sc_7.16-1.1.2.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 245 245 elapsed-time: 4.7 5.1 head-timing-info: old-timing-info: head results: sc-7.16_1.1.2/abbrev.c:34:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/abbrev.c:41:21: style: Local variable 'a' shadows outer variable [shadowVariable] sc-7.16_1.1.2/abbrev.c:27:20: note: Shadowed declaration sc-7.16_1.1.2/abbrev.c:41:21: note: Shadow variable sc-7.16_1.1.2/abbrev.c:140:17: style: Parameter 'abbrev' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/color.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_WHITE [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/color.c:105:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/color.c:153:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/color.c:286:20: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/frame.c:51:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/frame.c:236:25: style: Variable 'cfr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/format.c:555:37: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/format.c:569:37: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/format.c:285:21: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/format.c:389:20: style: Variable 'fmtptr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/format.c:501:18: style: Variable 'engmult' can be declared as const array [constVariable] sc-7.16_1.1.2/cmds.c:318:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:461:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:515:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:716:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:748:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:919:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:942:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:961:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:1186:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:1365:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:1411:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:1447:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:1762:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PC_NAME_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2004:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PC_NAME_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2440:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2465:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2485:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2502:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2548:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2604:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2648:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2697:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2857:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:2972:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3175:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3203:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3257:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3270:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3293:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3332:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3379:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3511:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/cmds.c:3554:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:143:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COL [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:336:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:646:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:655:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:664:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:173:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:228:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:262:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:556:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:568:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:980:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_BLACK [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1024:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1036:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1148:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1409:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1433:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1448:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1499:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1512:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1711:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:1885:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2007:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2164:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2236:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2311:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2383:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2485:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2502:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:2588:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/lex.c:204:8: style: Variable 'nstart' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/lex.c:356:14: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/pipe.c:303:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/pipe.c:69:5: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/pipe.c:257:39: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/pipe.c:21:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/pipe.c:185:20: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/psc.c:91:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/psc.c:265:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/psc.c:372:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/interp.c:589:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/interp.c:1081:37: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/interp.c:2110:5: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/interp.c:242:74: style:inconclusive: Function 'dolookup' argument 6 names different: declaration 'offr' definition 'offset'. [funcArgNamesDifferent] sc-7.16_1.1.2/interp.c:77:16: note: Function 'dolookup' argument 6 names different: declaration 'offr' definition 'offset'. sc-7.16_1.1.2/interp.c:242:74: note: Function 'dolookup' argument 6 names different: declaration 'offr' definition 'offset'. sc-7.16_1.1.2/interp.c:242:86: style:inconclusive: Function 'dolookup' argument 7 names different: declaration 'offc' definition 'vflag'. [funcArgNamesDifferent] sc-7.16_1.1.2/interp.c:77:26: note: Function 'dolookup' argument 7 names different: declaration 'offc' definition 'vflag'. sc-7.16_1.1.2/interp.c:242:86: note: Function 'dolookup' argument 7 names different: declaration 'offc' definition 'vflag'. sc-7.16_1.1.2/interp.c:1021:33: style:inconclusive: Function 'fn1_eval' argument 2 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/interp.c:78:40: note: Function 'fn1_eval' argument 2 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:1021:33: note: Function 'fn1_eval' argument 2 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:1913:56: style:inconclusive: Function 'moveto' argument 5 names different: declaration 'cornrow' definition 'cornerrow'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:529:6: note: Function 'moveto' argument 5 names different: declaration 'cornrow' definition 'cornerrow'. sc-7.16_1.1.2/interp.c:1913:56: note: Function 'moveto' argument 5 names different: declaration 'cornrow' definition 'cornerrow'. sc-7.16_1.1.2/interp.c:1914:9: style:inconclusive: Function 'moveto' argument 6 names different: declaration 'corncol' definition 'cornercol'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:529:19: note: Function 'moveto' argument 6 names different: declaration 'corncol' definition 'cornercol'. sc-7.16_1.1.2/interp.c:1914:9: note: Function 'moveto' argument 6 names different: declaration 'corncol' definition 'cornercol'. sc-7.16_1.1.2/interp.c:2482:14: style:inconclusive: Function 'hide_row' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:509:26: note: Function 'hide_row' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:2482:14: note: Function 'hide_row' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:2499:14: style:inconclusive: Function 'hide_col' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:508:26: note: Function 'hide_col' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:2499:14: note: Function 'hide_col' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/interp.c:246:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:306:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:333:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:360:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:388:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:423:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:461:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:498:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:580:13: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:1073:27: style: Parameter 'fmtstr' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1634:18: style: Parameter 'dv1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1634:35: style: Parameter 'dv2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1634:52: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1634:68: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1771:20: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1771:36: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1774:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:1816:19: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1816:35: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1819:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:1857:19: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1857:34: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1857:50: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:1962:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:2195:18: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2195:34: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2243:24: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2243:40: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2270:26: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2270:42: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2443:25: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2443:41: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2661:20: style: Variable 's' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:2864:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2878:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2890:15: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2899:15: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2910:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2923:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:2945:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:2957:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/interp.c:2985:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/psc.c:88:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/psc.c:327:14: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/psc.c:346:14: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/interp.c:551:20: style: Variable 'yr' is assigned a value that is never used. [unreadVariable] sc-7.16_1.1.2/interp.c:2035:11: style: Unused variable: tmp [unusedVariable] sc-7.16_1.1.2/range.c:57:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/range.c:163:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/range.c:163:45: style: Parameter 'lmatch' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/range.c:163:65: style: Parameter 'rmatch' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/range.c:337:20: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/range.c:382:21: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:272:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/sc.c:2170:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/sc.c:2211:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/sc.c:2257:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/sc.c:2321:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/screen.c:100:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/screen.c:1117:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/screen.c:1169:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/screen.c:809:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/sc.c:438:4: warning: Return value of function freopen() is not used. [ignoredReturnValue] sc-7.16_1.1.2/sc.c:439:4: warning: Return value of function freopen() is not used. [ignoredReturnValue] sc-7.16_1.1.2/sc.c:2150:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] sc-7.16_1.1.2/sort.c:67:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/sc.c:165:15: style: Variable '(*pp)->flags' is reassigned a value before the old one has been used. [redundantAssignment] sc-7.16_1.1.2/sc.c:154:19: note: (*pp)->flags is assigned sc-7.16_1.1.2/sc.c:165:15: note: (*pp)->flags is overwritten sc-7.16_1.1.2/sc.c:419:8: style: Variable 'redraw' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1103:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1424:24: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1473:28: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1499:28: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1577:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1587:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1597:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1607:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:1639:28: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:2226:16: style: Parameter 'endstr' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/sc.c:2255:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sc.c:2268:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3223:19: style: Array index 'curcol' is used before limits check. [arrayIndexThenCheck] sc-7.16_1.1.2/cmds.c:3242:19: style: Array index 'currow' is used before limits check. [arrayIndexThenCheck] sc-7.16_1.1.2/cmds.c:3083:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] sc-7.16_1.1.2/cmds.c:1873:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/cmds.c:2157:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sc-7.16_1.1.2/cmds.c:3531:19: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] sc-7.16_1.1.2/cmds.c:3614:2: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] sc-7.16_1.1.2/cmds.c:1240:12: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] sc-7.16_1.1.2/cmds.c:1239:19: note: outer condition: c<=cs sc-7.16_1.1.2/cmds.c:1240:12: note: opposite inner condition: c>cs sc-7.16_1.1.2/cmds.c:2523:19: style: Redundant condition: The condition '*fname' is redundant since '*fname == ' '' is sufficient. [redundantCondition] sc-7.16_1.1.2/sort.c:128:17: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/sort.c:129:17: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3595:6: error: Resource leak: infd [resourceLeak] sc-7.16_1.1.2/cmds.c:1150:12: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] sc-7.16_1.1.2/cmds.c:1090:7: note: r is assigned sc-7.16_1.1.2/cmds.c:1150:12: note: r is overwritten sc-7.16_1.1.2/cmds.c:1083:14: style:inconclusive: Function 'closerow' argument 1 names different: declaration 'r' definition 'rs'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:458:26: note: Function 'closerow' argument 1 names different: declaration 'r' definition 'rs'. sc-7.16_1.1.2/cmds.c:1083:14: note: Function 'closerow' argument 1 names different: declaration 'r' definition 'rs'. sc-7.16_1.1.2/cmds.c:2644:38: style:inconclusive: Function 'copyent' argument 9 names different: declaration 'transpose' definition 'special'. [funcArgNamesDifferent] sc-7.16_1.1.2/sc.h:463:54: note: Function 'copyent' argument 9 names different: declaration 'transpose' definition 'special'. sc-7.16_1.1.2/cmds.c:2644:38: note: Function 'copyent' argument 9 names different: declaration 'transpose' definition 'special'. sc-7.16_1.1.2/cmds.c:428:22: style: Parameter 'obuf' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/cmds.c:453:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:509:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:731:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:1179:17: style: Variable 'obuf' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:1320:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:1898:13: style: Variable 'start' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:1898:21: style: Variable 'last' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:1900:19: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:2220:26: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/cmds.c:2720:18: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/cmds.c:3328:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3360:11: style: Variable 'start' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3362:17: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3363:20: style: Variable 'cr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/cmds.c:3466:27: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vmtbl.c:100:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:132:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:1404:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:1484:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:1513:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:1588:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/vi.c:2033:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/xmalloc.c:60:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sc-7.16_1.1.2/xmalloc.c:55:13: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/xmalloc.c:23:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sc-7.16_1.1.2/xmalloc.c:33:6: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sc-7.16_1.1.2/xmalloc.c:40:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sc-7.16_1.1.2/xmalloc.c:48:4: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sc-7.16_1.1.2/vi.c:991:18: style: Condition 'cpos>0' is always true [knownConditionTrueFalse] sc-7.16_1.1.2/vi.c:986:17: note: Assuming that condition 'cpos>0' is not redundant sc-7.16_1.1.2/vi.c:991:18: note: Condition 'cpos>0' is always true sc-7.16_1.1.2/vi.c:1121:9: style: Condition 'len' is always true [knownConditionTrueFalse] sc-7.16_1.1.2/vi.c:1084:31: note: Assuming that condition 'linelim<2' is not redundant sc-7.16_1.1.2/vi.c:1089:28: note: Assuming condition is false sc-7.16_1.1.2/vi.c:1122:21: note: Assuming that condition 'pos==0' is not redundant sc-7.16_1.1.2/vi.c:1120:19: note: Assignment 'len=linelim-pos', assigned value is greater than 1 sc-7.16_1.1.2/vi.c:1121:9: note: Condition 'len' is always true sc-7.16_1.1.2/vi.c:1674:8: warning: If resource allocation fails, then there is a possible null pointer dereference: tmpfp [nullPointerOutOfResources] sc-7.16_1.1.2/vi.c:1668:17: note: Assuming allocation function fails sc-7.16_1.1.2/vi.c:1668:17: note: Assignment 'tmpfp=tmpfile()', assigned value is 0 sc-7.16_1.1.2/vi.c:1674:8: note: Null pointer dereference sc-7.16_1.1.2/vi.c:1701:33: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] sc-7.16_1.1.2/vi.c:1668:17: note: Assuming allocation function fails sc-7.16_1.1.2/vi.c:1668:17: note: Assignment 'tmpfp=tmpfile()', assigned value is 0 sc-7.16_1.1.2/vi.c:1681:15: note: Calling function 'readhistfile', 1st argument 'tmpfp' value is 0 sc-7.16_1.1.2/vi.c:1699:9: note: Assuming condition is false sc-7.16_1.1.2/vi.c:1701:33: note: Null pointer dereference sc-7.16_1.1.2/vi.c:904:14: style:inconclusive: Function 'for_line' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:47:26: note: Function 'for_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:904:14: note: Function 'for_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:926:14: style:inconclusive: Function 'for_word' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:48:26: note: Function 'for_word' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:926:14: note: Function 'for_word' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:970:15: style:inconclusive: Function 'back_line' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:33:27: note: Function 'back_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:970:15: note: Function 'back_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:979:15: style:inconclusive: Function 'back_word' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:34:27: note: Function 'back_word' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:979:15: note: Function 'back_word' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1026:17: style:inconclusive: Function 'del_in_line' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:39:29: note: Function 'del_in_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1026:17: note: Function 'del_in_line' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1141:17: style:inconclusive: Function 'change_case' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:36:29: note: Function 'change_case' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1141:17: note: Function 'change_case' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1736:15: style:inconclusive: Function 'find_char' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:45:27: note: Function 'find_char' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1736:15: note: Function 'find_char' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1764:13: style:inconclusive: Function 'to_char' argument 1 names different: declaration 'arg' definition 'a'. [funcArgNamesDifferent] sc-7.16_1.1.2/vi.c:63:25: note: Function 'to_char' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:1764:13: note: Function 'to_char' argument 1 names different: declaration 'arg' definition 'a'. sc-7.16_1.1.2/vi.c:129:20: style: Variable 'fr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:130:20: style: Variable 'cr' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:442:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:547:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:572:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:1072:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sc-7.16_1.1.2/vi.c:1576:11: style: Variable 'look_here' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:1887:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:1945:26: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sc-7.16_1.1.2/vi.c:742:8: style: Variable 'minsc' is assigned a value that is never used. [unreadVariable] sc-7.16_1.1.2/vi.c:744:8: style: Variable 'maxsc' is assigned a value that is never used. [unreadVariable] sc-7.16_1.1.2/vi.c:750:8: style: Variable 'minsr' is assigned a value that is never used. [unreadVariable] sc-7.16_1.1.2/vi.c:752:8: style: Variable 'maxsr' is assigned a value that is never used. [unreadVariable] diff: DONE