2024-04-13 03:20 ftp://ftp.de.debian.org/debian/pool/main/s/src2tex/src2tex_2.12h.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-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: 646f869 (2024-04-12 10:43:30 +0200) count: 49 TO! elapsed-time: 178.2 1800.1 head-timing-info: old-timing-info: head results: src2tex-2.12h.orig/fileio.c:47:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/fileio.c:206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/fileio.c:251:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/fileio.c:35:7: style: Parameter 'argv' can be declared as const array [constParameter] src2tex-2.12h.orig/fileio.c:143:7: style: Parameter 'cptr' can be declared as const array [constParameter] src2tex-2.12h.orig/fileio.c:248:7: style: Parameter 'cptr' can be declared as const array [constParameter] src2tex-2.12h.orig/getdata.c:44:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/getdata.c:64:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/getdata.c:42:26: portability: Undefined behaviour, pointer arithmetic 'Buffer-1' is out of bounds. [pointerOutOfBounds] src2tex-2.12h.orig/getdata.c:62:26: portability: Undefined behaviour, pointer arithmetic 'Buffer-1' is out of bounds. [pointerOutOfBounds] src2tex-2.12h.orig/hanoi.c:125:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] src2tex-2.12h.orig/hanoi.c:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable j [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/hanoi.c:66:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/langflag.c:1835:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/langflag.c:1700:31: style: Condition 'c1=='Z'' is always false [knownConditionTrueFalse] src2tex-2.12h.orig/langflag.c:1700:24: style: Same expression on both sides of '||'. [duplicateExpression] src2tex-2.12h.orig/langflag.c:1801:11: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] src2tex-2.12h.orig/modflag.c:835:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/modflag.c:148:39: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:231:39: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:300:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:339:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:527:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:570:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:609:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:636:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:682:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:703:35: style:inconclusive: Boolean expression 'c2=='\\'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:1140:36: style:inconclusive: Boolean expression 'math_flag!=0' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] src2tex-2.12h.orig/modflag.c:257:40: style: Condition 'c2='-'' is always true [knownConditionTrueFalse] src2tex-2.12h.orig/modflag.c:764:26: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] src2tex-2.12h.orig/modflag.c:257:40: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] src2tex-2.12h.orig/modflag.c:103:16: style: Variable 'warn_flag' is assigned a value that is never used. [unreadVariable] src2tex-2.12h.orig/newton.c:57:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] src2tex-2.12h.orig/options.c:138:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/options.c:104:14: style: Parameter 'iptr2' can be declared as pointer to const [constParameterPointer] src2tex-2.12h.orig/simpson.c:93:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] src2tex-2.12h.orig/src2tex.c:619:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] src2tex-2.12h.orig/text2tex.c:115:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable character [valueFlowBailoutIncompleteVar] src2tex-2.12h.orig/text2tex.c:179:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/text2tex.c:1443:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/text2tex.c:1458:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/text2tex.c:111:61: style: Variable 'cptr7' can be declared as pointer to const [constVariablePointer] src2tex-2.12h.orig/tools.c:480:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/tools.c:484:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/tools.c:488:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/tools.c:492:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/tools.c:496:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] src2tex-2.12h.orig/tools.c:500:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] DONE