2025-07-04 18:53 ftp://ftp.de.debian.org/debian/pool/main/m/mimetex/mimetex_1.76.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 -j10 platform: Linux-6.8.12-11-pve-x86_64-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: 9b11b6b (2025-07-04 16:03:30 +0200) count: 293 287 elapsed-time: 55.0 56.7 head-timing-info: old-timing-info: head results: mimetex-1.75/gifsave.c:182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/gifsave.c:254:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mimetex-1.75/gifsave.c:281:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mimetex-1.75/gifsave.c:761:41: style: Parameter 'sd' can be declared as pointer to const [constParameterPointer] mimetex-1.75/gifsave.c:833:39: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] mimetex-1.75/gfuntype.c:124:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mimetex-1.75/gfuntype.c:269:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chardef [valueFlowBailoutIncompleteVar] mimetex-1.75/gfuntype.c:371:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable symtable [valueFlowBailoutIncompleteVar] mimetex-1.75/gfuntype.c:112:28: style: Parameter 'argv' can be declared as const array [constParameter] mimetex-1.75/gfuntype.c:129:7: style: Variable 'copyright' can be declared as pointer to const [constVariablePointer] mimetex-1.75/gfuntype.c:219:11: style: Variable 'charname' can be declared as pointer to const [constVariablePointer] mimetex-1.75/gfuntype.c:337:14: style: Variable 'fnames' can be declared as const array [constVariable] mimetex-1.75/gfuntype.c:340:15: style: Variable 'fnums' can be declared as const array [constVariable] mimetex-1.75/gfuntype.c:343:15: style: Variable 'offsets' can be declared as const array [constVariable] mimetex-1.75/gfuntype.c:407:13: style: Variable 'keyword' can be declared as const array [constVariable] mimetex-1.75/gfuntype.c:462:21: style: Variable 'line' can be declared as pointer to const [constVariablePointer] mimetex-1.75/gfuntype.c:515:6: style: Variable 'maxbitcount' can be declared as const array [constVariable] mimetex-1.75/gfuntype.c:750:21: style: Variable 'ibit' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:3719:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:3822:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:3903:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:3982:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:4306:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:4394:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:4456:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:13640:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mimetex-1.75/mimetex.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] mimetex-1.75/mimetex.c:13700:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mimetex-1.75/mimetex.c:13803:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mimetex-1.75/mimetex.c:6433:12: style: The if condition is the same as the previous if condition [duplicateCondition] mimetex-1.75/mimetex.c:6429:12: note: First condition mimetex-1.75/mimetex.c:6433:12: note: Second condition mimetex-1.75/mimetex.c:9065:19: style: The if condition is the same as the previous if condition [duplicateCondition] mimetex-1.75/mimetex.c:9063:19: note: First condition mimetex-1.75/mimetex.c:9065:19: note: Second condition mimetex-1.75/mimetex.c:11063:25: style: The if condition is the same as the previous if condition [duplicateCondition] mimetex-1.75/mimetex.c:11060:25: note: First condition mimetex-1.75/mimetex.c:11063:25: note: Second condition mimetex-1.75/mimetex.c:15475:15: style: The if condition is the same as the previous if condition [duplicateCondition] mimetex-1.75/mimetex.c:15467:15: note: First condition mimetex-1.75/mimetex.c:15475:15: note: Second condition mimetex-1.75/mimetex.c:4701:13: style: The statement 'if (fonts!=ssfonttable) fonts=ssfonttable' is logically equivalent to 'fonts=ssfonttable'. [duplicateConditionalAssign] mimetex-1.75/mimetex.c:4702:11: note: Assignment 'fonts=ssfonttable' mimetex-1.75/mimetex.c:4701:13: note: Condition 'fonts!=ssfonttable' is redundant mimetex-1.75/mimetex.c:1147:18: style: Condition '0&&issupersampling' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:1688:23: style: Condition 'icol=0' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3054:6: style: Condition 'isrecurse' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3038:35: note: Assignment 'isrecurse=1', assigned value is 1 mimetex-1.75/mimetex.c:3054:6: note: Condition 'isrecurse' is always true mimetex-1.75/mimetex.c:3067:7: style: Condition '0&&isbar' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3252:7: style: Condition 'isrecurse' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3241:37: note: Assignment 'isrecurse=1', assigned value is 1 mimetex-1.75/mimetex.c:3252:7: note: Condition 'isrecurse' is always true mimetex-1.75/mimetex.c:3670:8: style: Condition '1||width-nback>0' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3725:9: style: Condition '0&&rp->height==1' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:3998:6: style: Condition 'isquery' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:4704:8: style: Condition '0&&issupersampling' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:5648:14: style: Condition '0&&(!isescape&&!isdelim)' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:7731:12: style: Condition '0&&!qcopy' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:7989:17: style: Condition '*subexpr=='\000'' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:7990:17: style: Condition '*subexpr=='\000'' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8029:27: style: Condition 'warninglevel<1' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8070:18: style: Condition 'msglevel>=9' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8067:32: note: Assuming that condition 'msglevel>=9' is not redundant mimetex-1.75/mimetex.c:8070:18: note: Condition 'msglevel>=9' is always true mimetex-1.75/mimetex.c:8353:29: style: Condition 'smashcheck>1' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8356:13: style: Condition '!issmashokay' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8352:22: note: Assignment 'issmashokay=1', assigned value is 1 mimetex-1.75/mimetex.c:8356:13: note: Condition '!issmashokay' is always false mimetex-1.75/mimetex.c:8443:17: style: Condition 'smashcheck>0' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8881:11: style: Condition 'sp!=NULL' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:8880:34: note: Assignment 'sp=NULL', assigned value is 0 mimetex-1.75/mimetex.c:8881:11: note: Condition 'sp!=NULL' is always false mimetex-1.75/mimetex.c:9075:18: style: Condition 'issupersampling' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:9072:15: note: Assignment 'value=0', assigned value is 0 mimetex-1.75/mimetex.c:9074:30: note: Assignment 'issupersampling=value', assigned value is 0 mimetex-1.75/mimetex.c:9075:18: note: Condition 'issupersampling' is always false mimetex-1.75/mimetex.c:9138:13: style: Condition '0&&isdisplaystyle==0' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:10396:8: style: Condition '1||class<0' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:11418:15: style: Condition 'origin==55' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:11412:12: note: Assignment 'origin=0', assigned value is 0 mimetex-1.75/mimetex.c:11415:18: note: Assuming condition is false mimetex-1.75/mimetex.c:11418:15: note: Condition 'origin==55' is always false mimetex-1.75/mimetex.c:11662:13: style: Condition 'rwidth<1' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:11655:11: note: Assignment 'rwidth=(1)>(width)?(1):(width)', assigned value is greater than 0 mimetex-1.75/mimetex.c:11662:13: note: Condition 'rwidth<1' is always false mimetex-1.75/mimetex.c:11974:16: style: Condition '*liftexpr=='\000'' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:12043:15: style: Condition '*degexpr=='\000'' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:12551:24: style: Condition 'seclevel<=inputseclevel' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:12612:38: style: Condition '(reformat=dbltoa(d,npts))!=NULL' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:12670:23: style: Condition 'seclevel<=counterseclevel' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:13141:26: style: Condition 'seclevel<=environseclevel' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:14066:10: style: Condition '0&&msgfp!=NULL' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:14609:6: style: Condition 'isresetparams' is always true [knownConditionTrueFalse] mimetex-1.75/mimetex.c:14596:21: note: Assignment 'isresetparams=1', assigned value is 1 mimetex-1.75/mimetex.c:14609:6: note: Condition 'isresetparams' is always true mimetex-1.75/mimetex.c:16051:17: style: Condition '0&&aafrac<=minwtfrac' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:16186:16: style: Condition '0&&ssfrac<=minwtfrac' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:16540:8: style: Condition '0&&iscenter' is always false [knownConditionTrueFalse] mimetex-1.75/mimetex.c:13566:6: error: Return value of allocation function 'rastopenfile' is not stored. [leakReturnValNotUsed] mimetex-1.75/mimetex.c:1525:13: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1537:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1525:13: note: Null pointer dereference mimetex-1.75/mimetex.c:1526:11: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1537:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1526:11: note: Null pointer dereference mimetex-1.75/mimetex.c:1527:10: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1537:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1527:10: note: Null pointer dereference mimetex-1.75/mimetex.c:1597:14: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1604:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1597:14: note: Null pointer dereference mimetex-1.75/mimetex.c:1598:10: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1604:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1598:10: note: Null pointer dereference mimetex-1.75/mimetex.c:1600:10: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:1604:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:1600:10: note: Null pointer dereference mimetex-1.75/mimetex.c:2933:9: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:2942:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:2933:9: note: Null pointer dereference mimetex-1.75/mimetex.c:2933:21: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:2942:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:2933:21: note: Null pointer dereference mimetex-1.75/mimetex.c:3025:11: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:3042:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:3025:11: note: Null pointer dereference mimetex-1.75/mimetex.c:3025:29: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:3042:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:3025:29: note: Null pointer dereference mimetex-1.75/mimetex.c:15937:14: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:15961:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:15937:14: note: Null pointer dereference mimetex-1.75/mimetex.c:15937:34: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:15961:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:15937:34: note: Null pointer dereference mimetex-1.75/mimetex.c:16096:14: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:16115:10: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:16096:14: note: Null pointer dereference mimetex-1.75/mimetex.c:16096:34: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:16115:10: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:16096:34: note: Null pointer dereference mimetex-1.75/mimetex.c:2775:33: style: Same value in both branches of ternary operator. [duplicateValueTernary] mimetex-1.75/mimetex.c:2851:32: style: Same value in both branches of ternary operator. [duplicateValueTernary] mimetex-1.75/mimetex.c:5172:19: style: Same value in both branches of ternary operator. [duplicateValueTernary] mimetex-1.75/mimetex.c:5172:41: style: Same value in both branches of ternary operator. [duplicateValueTernary] mimetex-1.75/mimetex.c:5232:41: style: Same value in both branches of ternary operator. [duplicateValueTernary] mimetex-1.75/mimetex.c:8415:2: style: Same expression used in consecutive assignments of 'vabove' and 'vbelow'. [duplicateAssignExpression] mimetex-1.75/mimetex.c:8416:2: note: Same expression used in consecutive assignments of 'vabove' and 'vbelow'. mimetex-1.75/mimetex.c:8415:2: note: Same expression used in consecutive assignments of 'vabove' and 'vbelow'. mimetex-1.75/mimetex.c:8416:2: style: Same expression used in consecutive assignments of 'vbelow' and 'vbottom'. [duplicateAssignExpression] mimetex-1.75/mimetex.c:8417:2: note: Same expression used in consecutive assignments of 'vbelow' and 'vbottom'. mimetex-1.75/mimetex.c:8416:2: note: Same expression used in consecutive assignments of 'vbelow' and 'vbottom'. mimetex-1.75/mimetex.c:11171:48: style: Same expression on both sides of '/'. [duplicateExpression] mimetex-1.75/mimetex.c:10830:14: note: 'rowspace' is assigned value '2' here. mimetex-1.75/mimetex.c:11171:48: note: Same expression on both sides of '/'. mimetex-1.75/mimetex.c:14536:23: style: The comparison 'blackscale > 0' is always false. [knownConditionTrueFalse] mimetex-1.75/mimetex.c:14481:15: note: 'blackscale' is assigned value '0' here. mimetex-1.75/mimetex.c:14536:23: note: The comparison 'blackscale > 0' is always false. mimetex-1.75/mimetex.c:16326:21: style: The comparison 'maxcolors > 0' is always false. [knownConditionTrueFalse] mimetex-1.75/mimetex.c:16310:17: note: 'maxcolors' is assigned value '0' here. mimetex-1.75/mimetex.c:16326:21: note: The comparison 'maxcolors > 0' is always false. mimetex-1.75/mimetex.c:16364:17: style: The comparison 'maxcolors > 0' is always false. [knownConditionTrueFalse] mimetex-1.75/mimetex.c:16310:17: note: 'maxcolors' is assigned value '0' here. mimetex-1.75/mimetex.c:16364:17: note: The comparison 'maxcolors > 0' is always false. mimetex-1.75/mimetex.c:16540:8: style: Same expression on both sides of '&&'. [knownConditionTrueFalse] mimetex-1.75/mimetex.c:16475:13: note: 'iscenter' is assigned value '0' here. mimetex-1.75/mimetex.c:16540:8: note: Same expression on both sides of '&&'. mimetex-1.75/mimetex.c:2075:9: style: Redundant initialization for 'space'. The initialized value is overwritten before it is read. [redundantInitialization] mimetex-1.75/mimetex.c:2067:8: note: space is initialized mimetex-1.75/mimetex.c:2075:9: note: space is overwritten mimetex-1.75/mimetex.c:6344:8: style: Redundant initialization for 'expptr'. The initialized value is overwritten before it is read. [redundantInitialization] mimetex-1.75/mimetex.c:6064:13: note: expptr is initialized mimetex-1.75/mimetex.c:6344:8: note: expptr is overwritten mimetex-1.75/mimetex.c:6344:1: style: Variable 'expptr' is assigned an expression that holds the same value. [redundantAssignment] mimetex-1.75/mimetex.c:6064:13: note: expptr is assigned 'expression' here. mimetex-1.75/mimetex.c:6344:1: note: Variable 'expptr' is assigned an expression that holds the same value. mimetex-1.75/mimetex.c:6361:12: style: Variable '*leftptr' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:6355:13: note: *leftptr is assigned mimetex-1.75/mimetex.c:6361:12: note: *leftptr is overwritten mimetex-1.75/mimetex.c:6389:11: style: Redundant initialization for 'htmllen'. The initialized value is overwritten before it is read. [redundantInitialization] mimetex-1.75/mimetex.c:6372:15: note: htmllen is initialized mimetex-1.75/mimetex.c:6389:11: note: htmllen is overwritten mimetex-1.75/mimetex.c:6550:20: style: Variable '*(tokptr+1)' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:6549:8: note: *(tokptr+1) is assigned mimetex-1.75/mimetex.c:6550:20: note: *(tokptr+1) is overwritten mimetex-1.75/mimetex.c:9739:15: style: Variable 'offset2' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:9738:15: note: offset2 is assigned mimetex-1.75/mimetex.c:9739:15: note: offset2 is overwritten mimetex-1.75/mimetex.c:11869:5: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:11863:5: note: c is assigned mimetex-1.75/mimetex.c:11869:5: note: c is overwritten mimetex-1.75/mimetex.c:12056:7: style: Variable 'isn90' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:12055:7: note: isn90 is assigned mimetex-1.75/mimetex.c:12056:7: note: isn90 is overwritten mimetex-1.75/mimetex.c:12172:7: style: Variable 'magrp' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:12166:7: note: magrp is assigned mimetex-1.75/mimetex.c:12172:7: note: magrp is overwritten mimetex-1.75/mimetex.c:12251:7: style: Variable 'refrp' is reassigned a value before the old one has been used. [redundantAssignment] mimetex-1.75/mimetex.c:12245:7: note: refrp is assigned mimetex-1.75/mimetex.c:12251:7: note: refrp is overwritten mimetex-1.75/mimetex.c:16544:46: error: Division by zero. [zerodiv] mimetex-1.75/mimetex.c:16470:9: note: Assignment 'totwts=0', assigned value is 0 mimetex-1.75/mimetex.c:16501:21: note: Assuming condition is false mimetex-1.75/mimetex.c:16544:46: note: Division by zero mimetex-1.75/mimetex.c:8024:14: style: Local variable 'oldfontnum' shadows outer variable [shadowVariable] mimetex-1.75/mimetex.c:7921:2: note: Shadowed declaration mimetex-1.75/mimetex.c:8024:14: note: Shadow variable mimetex-1.75/mimetex.c:10934:12: style: Local variable 'size' shadows outer argument [shadowArgument] mimetex-1.75/mimetex.c:10754:55: note: Shadowed declaration mimetex-1.75/mimetex.c:10934:12: note: Shadow variable mimetex-1.75/mimetex.c:12144:5: style: Local variable 'magstep' shadows outer variable [shadowVariable] mimetex-1.75/mimetex.c:959:1: note: Shadowed declaration mimetex-1.75/mimetex.c:12144:5: note: Shadow variable mimetex-1.75/mimetex.c:16508:7: style: Local variable 'iscenter' shadows outer variable [shadowVariable] mimetex-1.75/mimetex.c:16475:2: note: Shadowed declaration mimetex-1.75/mimetex.c:16508:7: note: Shadow variable mimetex-1.75/mimetex.c:1552:26: style: Variable 'urot' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:1644:42: style: Parameter 'bytemap' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:2504:13: style: Variable 'nosmashchars' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:2508:7: style: Variable 'expression' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:2509:7: style: Variable 'token' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:3708:13: style: Variable 'display_chars' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:3800:39: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:3897:7: style: Variable 'title' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:3958:2: style: Variable 'cr' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:3962:3: style: Variable 'suffix' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:3963:3: style: Variable 'magic' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:3964:3: style: Variable 'mode' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:4091:3: style: Variable 'lineptr' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4092:7: style: Variable 'magicnumber' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4251:6: style: Variable 'typecast' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:4298:6: style: Variable 'stub' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:4357:55: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:4357:69: style: Parameter 'comment' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:4424:2: style: Variable 'repeatcmds' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:4551:11: style: Variable 'fromsym' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4626:14: style: Variable 'symdefs' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4627:7: style: Variable 'ligature' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4628:3: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:4960:3: style: Variable 'unescsymbol' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5007:8: style: Variable 'defsym' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5099:7: style: Variable 'lp' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5099:18: style: Variable 'rp' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5100:3: style: Variable 'lp2' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5100:14: style: Variable 'rp2' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5101:3: style: Variable 'lp3' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5101:14: style: Variable 'rp3' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5102:3: style: Variable 'lp4' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5102:14: style: Variable 'rp4' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:5454:14: style: Variable 'prefixes' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:5459:14: style: Variable 'starred' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:5890:31: style: Parameter 'expression' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:5890:49: style: Parameter 'braces' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:5960:3: style: Variable 'dollar' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6078:14: style: Variable 'leftcomment' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6106:7: style: Variable 'atopsym' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6347:9: style: Variable 'rightsym' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6379:8: style: Variable 'embedkeywd' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:6383:3: style: Variable 'htmlterm' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6420:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6465:8: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6480:14: style: Variable 'optarg' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6531:9: style: Variable 'lrstr' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6533:9: style: Variable 'braces' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6536:3: style: Variable 'lrsym' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6565:30: style: Variable 'rightbrace' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6583:8: style: Variable 'open' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6583:37: style: Variable 'close' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6635:59: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:6680:48: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:6762:59: style: Parameter 'white' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:6891:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6929:49: style: Parameter 'texchr' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:6975:36: style: Parameter 'expression' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:6982:3: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:6983:3: style: Variable 'match' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7130:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7142:7: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7347:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7354:3: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7403:52: style: Parameter 'directive' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:7527:8: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7600:41: style: Variable 'pr' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7781:18: style: Variable 'hex' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7786:13: style: Variable 'ctrlchars' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:7806:13: style: Variable 'searchfor' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:7858:26: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:8052:10: style: Variable 'symbol' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:8284:14: style: Variable 'tokdef' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:8653:14: style: Variable 'ldelims' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:8662:14: style: Variable 'opdelims' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:8678:14: style: Variable 'xto' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:8772:18: style: Variable 'xdelim' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:8874:72: style: Parameter 'basesp' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:8923:25: style: Variable 'subptr' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10025:14: style: Variable 'funcnames' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:10354:7: style: Variable 'name' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10517:7: style: Variable 'begtoken' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10517:29: style: Variable 'endtoken' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10530:14: style: Variable 'environs' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:10761:25: style: Variable 'subptr' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10764:7: style: Variable 'coldelim' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10764:22: style: Variable 'rowdelim' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10836:7: style: Variable 'hlchar' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10836:26: style: Variable 'hdchar' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:10935:14: style: Variable 'whchars' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:11353:7: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:11742:5: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12557:18: style: Variable 'reformat' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12574:7: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12583:7: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12685:14: style: Variable 'ordinal' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:12686:14: style: Variable 'logvars' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:12801:14: style: Variable 'logval' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12923:7: style: Variable 'localhost' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12923:34: style: Variable 'plocalhost' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:12924:7: style: Variable 'mathtexpwd' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13017:10: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13081:10: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13175:3: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13180:3: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13182:3: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13252:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13325:54: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:13383:42: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:13443:34: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:13443:62: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:13685:12: style: Variable 'tmstruct' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13690:14: style: Variable 'monthnames' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:13785:12: style: Variable 'tmstruct' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:13791:14: style: Variable 'daynames' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:13793:14: style: Variable 'monthnames' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:13952:12: style: Variable 'modays' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14043:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14166:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14240:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14243:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14274:13: style: Variable 'digittbl' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14358:42: style: Parameter 'axis' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:14414:54: style: Parameter 'vec' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:14474:10: style: Variable 'bitmap' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14477:5: style: Variable 'adjindex' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14585:10: style: Variable 'bitmap' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:14777:12: style: Variable 'nadjacents' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14785:12: style: Variable 'ncorners' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14793:12: style: Variable 'horzedges' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14801:12: style: Variable 'vertedges' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:14809:12: style: Variable 'diagedges' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:15014:10: style: Variable 'bitmap' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:15389:10: style: Variable 'bitmap' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:15541:10: style: Variable 'bitmap' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:15696:12: style: Variable 'patternnum' can be declared as const array [constVariable] mimetex-1.75/mimetex.c:16090:40: style: Parameter 'rp' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:16298:37: style: Parameter 'bytemap' can be declared as pointer to const [constParameterPointer] mimetex-1.75/mimetex.c:16597:1: style: Variable 'thissource' can be declared as pointer to const [constVariablePointer] mimetex-1.75/mimetex.c:9148:23: warning: Char literal compared with pointer '*expression'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] mimetex-1.75/mimetex.c:2931:9: style: Variable 'irow' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:2931:17: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:3022:17: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:4506:11: style: Variable 'ligdef' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:4631:10: style: Variable 'idef' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:4962:9: style: Variable 'deflen' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:4966:10: style: Variable 'size' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5170:6: style: Variable 'ibar' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5170:15: style: Variable 'nbars' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5221:10: style: Variable 'rp' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5229:6: style: Variable 'ibar' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5229:15: style: Variable 'nbars' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:5492:19: style: Variable 'nextlen' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:6767:14: style: Variable 'psubstr' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:7777:39: style: Variable 'gotescape' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:9891:12: style: Variable 'baseht' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:9892:12: style: Variable 'baseln' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:13066:33: style: Variable 'argval' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:13687:16: style: Variable 'iday' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:14475:17: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:14496:19: style: Variable 'jcol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:14587:7: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:14760:7: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:14770:12: style: Variable 'gridnum' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:15876:7: style: Variable 'icol' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:15878:11: style: Variable 'bitval' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:15879:11: style: Variable 'aabyteval' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:15880:12: style: Variable 'gridnum' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:16144:10: style: Variable 'iwt' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:16470:18: style: Variable 'sumwts' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:16508:16: style: Variable 'iscenter' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:16533:12: style: Variable 'sumwts' is assigned a value that is never used. [unreadVariable] mimetex-1.75/mimetex.c:16537:11: style: Variable 'iscenter' is assigned a value that is never used. [unreadVariable] diff: head mimetex-1.75/mimetex.c:12612:38: style: Condition '(reformat=dbltoa(d,npts))!=NULL' is always true [knownConditionTrueFalse] head mimetex-1.75/mimetex.c:15937:34: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:15961:9: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:15937:34: note: Null pointer dereference head mimetex-1.75/mimetex.c:16096:34: warning: Either the condition 'rp==NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:16115:10: note: Assuming that condition 'rp==NULL' is not redundant mimetex-1.75/mimetex.c:16096:34: note: Null pointer dereference head mimetex-1.75/mimetex.c:2933:21: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:2942:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:2933:21: note: Null pointer dereference head mimetex-1.75/mimetex.c:3025:29: warning: Either the condition 'rp==(struct raster_struct*)NULL' is redundant or there is possible null pointer dereference: rp. [nullPointerRedundantCheck] mimetex-1.75/mimetex.c:3042:9: note: Assuming that condition 'rp==(struct raster_struct*)NULL' is not redundant mimetex-1.75/mimetex.c:3025:29: note: Null pointer dereference head mimetex-1.75/mimetex.c:5172:41: style: Same value in both branches of ternary operator. [duplicateValueTernary] DONE