2022-06-21 17:13 ftp://ftp.de.debian.org/debian/pool/main/e/epstool/epstool_3.09.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 49ffe80 (2022-06-21 17:14:53 +0200) count: 189 167 elapsed-time: 51.1 67.2 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: epstool-3.09/src/capp.c:262:5: warning:inconclusive: The buffer 'buf' may not be null-terminated after the call to strncpy(). [terminateStrncpy] epstool-3.09/src/capp.c:655:5: warning: Return value of function mktemp() is not used. [ignoredReturnValue] epstool-3.09/src/capp.c:700:5: warning: Return value of function mktemp() is not used. [ignoredReturnValue] epstool-3.09/src/capp.c:655:5: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] epstool-3.09/src/capp.c:700:5: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] epstool-3.09/src/capp.c:457:11: style: Expression is always true because 'else if' condition is opposite to previous condition at line 453. [multiCondition] epstool-3.09/src/capp.c:453:14: note: first condition epstool-3.09/src/capp.c:457:11: note: else if condition is opposite to first condition epstool-3.09/src/capp.c:545:11: style: Expression is always true because 'else if' condition is opposite to previous condition at line 541. [multiCondition] epstool-3.09/src/capp.c:541:14: note: first condition epstool-3.09/src/capp.c:545:11: note: else if condition is opposite to first condition epstool-3.09/src/capp.c:721:5: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:593:16: style: Condition 'count-i>=10' is always false [knownConditionTrueFalse] epstool-3.09/src/cdoc.c:590:12: note: Assuming that condition 'i=10' is always false epstool-3.09/src/cdoc.c:596:21: style: Condition 'count-i>=5' is always false [knownConditionTrueFalse] epstool-3.09/src/cdoc.c:590:12: note: Assuming that condition 'i=5' is always false epstool-3.09/src/cdoc.c:599:21: style: Condition 'count-i>=3' is always false [knownConditionTrueFalse] epstool-3.09/src/cdoc.c:590:12: note: Assuming that condition 'i=3' is always false epstool-3.09/src/cdoc.c:329:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cdoc.c:980:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cdoc.c:366:12: warning: Either the condition 'p==(TCHAR*)NULL' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] epstool-3.09/src/cdoc.c:367:11: note: Assuming that condition 'p==(TCHAR*)NULL' is not redundant epstool-3.09/src/cdoc.c:366:12: note: Null pointer dereference epstool-3.09/src/cdoc.c:165:14: style:inconclusive: Function 'doc_app' argument 1 names different: declaration 'd' definition 'doc'. [funcArgNamesDifferent] epstool-3.09/src/cdoc.h:48:23: note: Function 'doc_app' argument 1 names different: declaration 'd' definition 'doc'. epstool-3.09/src/cdoc.c:165:14: note: Function 'doc_app' argument 1 names different: declaration 'd' definition 'doc'. epstool-3.09/src/cdoc.c:371:6: style: Local variable 'len' shadows outer variable [shadowVariable] epstool-3.09/src/cdoc.c:300:9: note: Shadowed declaration epstool-3.09/src/cdoc.c:371:6: note: Shadow variable epstool-3.09/src/cdoc.c:239:5: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:867:12: warning: Division by result of sizeof(). strncat() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:879:2: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:935:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:942:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:979:2: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:982:2: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cdoc.c:990:2: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/cbmp.c:642:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/cbmp.c:645:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/cbmp.c:1419:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] epstool-3.09/src/cbmp.c:632:10: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] epstool-3.09/src/cbmp.c:631:20: note: outer condition: !code epstool-3.09/src/cbmp.c:632:10: note: identical inner condition: !code epstool-3.09/src/cbmp.c:1391:24: style: The if condition is the same as the previous if condition [duplicateCondition] epstool-3.09/src/cbmp.c:1379:24: note: First condition epstool-3.09/src/cbmp.c:1391:24: note: Second condition epstool-3.09/src/cbmp.c:425:13: style: Condition 'x&0' is always false [knownConditionTrueFalse] epstool-3.09/src/cbmp.c:288:37: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:303:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:314:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:323:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:340:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:349:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:350:71: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:356:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:357:71: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:363:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:713:37: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:714:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:718:35: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:719:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:723:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:724:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:728:35: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:729:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cbmp.c:652:14: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:656:14: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:660:14: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:664:14: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:695:13: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:695:13: warning: %u in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:704:10: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] epstool-3.09/src/cbmp.c:1591:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cbmp.c:1591:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cbmp.c:184:21: style: Variable 'bmf.bfReserved1' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/cbmp.c:183:21: note: bmf.bfReserved1 is assigned epstool-3.09/src/cbmp.c:184:21: note: bmf.bfReserved1 is overwritten epstool-3.09/src/cbmp.c:925:16: style: Variable 'pallength' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/cbmp.c:922:16: note: pallength is assigned epstool-3.09/src/cbmp.c:925:16: note: pallength is overwritten epstool-3.09/src/cbmp.c:181:16: style: Variable 'bmf.bfType' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:184:21: style: Variable 'bmf.bfReserved1' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:185:19: style: Variable 'bmf.bfOffBits' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:194:11: style: Variable 'count' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:248:22: style: Variable 'bmp2.biSizeImage' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:250:26: style: Variable 'bmp2.biXPelsPerMeter' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:252:26: style: Variable 'bmp2.biYPelsPerMeter' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:256:25: style: Variable 'bmp2.biClrImportant' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:481:14: style: Variable 'mask' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:918:16: style: Variable 'pallength' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:925:16: style: Variable 'pallength' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cbmp.c:1508:10: style: Variable 'code' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/ceps.c:1983:11: style: The if condition is the same as the previous if condition [duplicateCondition] epstool-3.09/src/ceps.c:1974:11: note: First condition epstool-3.09/src/ceps.c:1983:11: note: Second condition epstool-3.09/src/ceps.c:654:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] epstool-3.09/src/ceps.c:654:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] epstool-3.09/src/ceps.c:654:5: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] epstool-3.09/src/ceps.c:293:19: style: Variable 'mfh.bbox.bottom' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/ceps.c:291:19: note: mfh.bbox.bottom is assigned epstool-3.09/src/ceps.c:293:19: note: mfh.bbox.bottom is overwritten epstool-3.09/src/ceps.c:1916:17: style: Variable 'file_offset' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/ceps.c:1885:14: note: file_offset is assigned epstool-3.09/src/ceps.c:1916:17: note: file_offset is overwritten epstool-3.09/src/ceps.c:2102:10: style: Variable 'code' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/ceps.c:2088:10: note: code is assigned epstool-3.09/src/ceps.c:2102:10: note: code is overwritten epstool-3.09/src/ceps.c:2200:7: style: Redundant initialization for 'type'. The initialized value is overwritten before it is read. [redundantInitialization] epstool-3.09/src/ceps.c:2195:20: note: type is initialized epstool-3.09/src/ceps.c:2200:7: note: type is overwritten epstool-3.09/src/ceps.c:2184:62: style:inconclusive: Function 'make_eps_pict' argument 7 names different: declaration 'type' definition 'mac_type'. [funcArgNamesDifferent] epstool-3.09/src/ceps.h:31:39: note: Function 'make_eps_pict' argument 7 names different: declaration 'type' definition 'mac_type'. epstool-3.09/src/ceps.c:2184:62: note: Function 'make_eps_pict' argument 7 names different: declaration 'type' definition 'mac_type'. epstool-3.09/src/ceps.c:615:17: style: Local variable 'eol_str' shadows outer variable [shadowVariable] epstool-3.09/src/ceps.c:1243:19: note: Shadowed declaration epstool-3.09/src/ceps.c:615:17: note: Shadow variable epstool-3.09/src/ceps.c:1549:19: style: Local variable 'fname' shadows outer variable [shadowVariable] epstool-3.09/src/ceps.c:1508:14: note: Shadowed declaration epstool-3.09/src/ceps.c:1549:19: note: Shadow variable epstool-3.09/src/ceps.c:1601:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/ceps.c:2161:10: style: Variable 'code' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/clfile.c:80:31: error: Shifting 64-bit value by 64 bits is undefined behaviour [shiftTooManyBits] epstool-3.09/src/clfile.c:202:29: error: Shifting 64-bit value by 64 bits is undefined behaviour [shiftTooManyBits] epstool-3.09/src/clfile.c:235:10: style: Variable 'code' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cimg.c:1534:25: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cimg.c:1537:26: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/cimg.c:1953:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cimg.c:1959:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cimg.c:1961:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cimg.c:1973:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cimg.c:1973:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/cimg.c:2107:23: warning: Either the condition 'img==NULL' is redundant or there is possible null pointer dereference: img. [nullPointerRedundantCheck] epstool-3.09/src/cimg.c:2111:14: note: Assuming that condition 'img==NULL' is not redundant epstool-3.09/src/cimg.c:2107:23: note: Null pointer dereference epstool-3.09/src/cimg.c:2108:24: warning: Either the condition 'img==NULL' is redundant or there is possible null pointer dereference: img. [nullPointerRedundantCheck] epstool-3.09/src/cimg.c:2111:14: note: Assuming that condition 'img==NULL' is not redundant epstool-3.09/src/cimg.c:2108:24: note: Null pointer dereference epstool-3.09/src/clzw.c:132:18: style: Variable 'bytes_in' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/clzw.c:133:19: style: Variable 'bytes_out' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cmbcs.c:64:15: style: Redundant condition: If 'EXPR >= 0x80', the comparison 'EXPR' is always true. [redundantCondition] epstool-3.09/src/cmbcs.c:58:21: style: Condition 't[0]>0' is always true [knownConditionTrueFalse] epstool-3.09/src/cmbcs.c:56:15: note: Assuming that condition 't[0]==0' is not redundant epstool-3.09/src/cmbcs.c:58:21: note: Condition 't[0]>0' is always true epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:72:9: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:74:9: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:76:9: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:81:9: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:83:9: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmbcs.c:89:5: style: Variable 'i' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] epstool-3.09/src/cmbcs.c:86:5: note: $symbol is assigned epstool-3.09/src/cmbcs.c:89:5: note: $symbol is overwritten epstool-3.09/src/cmac.c:244:26: style: Variable 'preview_length' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cprofile.c:153:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/cprofile.c:291:9: style: Variable 'ps' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/cpdfscan.c:1315:11: style: The if condition is the same as the previous if condition [duplicateCondition] epstool-3.09/src/cpdfscan.c:1312:11: note: First condition epstool-3.09/src/cpdfscan.c:1315:11: note: Second condition epstool-3.09/src/cpdfscan.c:193:4: warning: Either the condition 'ps!=NULL' is redundant or there is possible null pointer dereference: ps. [nullPointerRedundantCheck] epstool-3.09/src/cpdfscan.c:190:12: note: Assuming that condition 'ps!=NULL' is not redundant epstool-3.09/src/cpdfscan.c:193:4: note: Null pointer dereference epstool-3.09/src/cpdfscan.c:104:8: style: union member 'value_u::opval' is never used. [unusedStructMember] epstool-3.09/src/cps.c:318:14: style: Variable 'position' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/cps.c:296:15: note: position is assigned epstool-3.09/src/cps.c:318:14: note: position is overwritten epstool-3.09/src/dscutil.c:201:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 5) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:290:2: warning: %ld in format string (no. 6) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:297:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:297:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:297:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:297:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:320:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:407:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:453:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:549:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscutil.c:171:20: style: Parameter 'caller_data' can be declared as pointer to const [constParameter] epstool-3.09/src/dscparse.c:1131:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/dscparse.c:1132:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/dscparse.c:1133:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/dscparse.c:1153:11: style: Condition 'bytesorlines' is always true [knownConditionTrueFalse] epstool-3.09/src/dscparse.c:2757:9: style: Condition '!rc' is always true [knownConditionTrueFalse] epstool-3.09/src/dscparse.c:2751:14: note: Assignment 'rc=0', assigned value is 0 epstool-3.09/src/dscparse.c:2757:9: note: Condition '!rc' is always true epstool-3.09/src/dscparse.c:612:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscparse.c:1214:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] epstool-3.09/src/dscparse.c:832:15: style: Variable 'dsc->epsf' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/dscparse.c:830:15: note: dsc->epsf is assigned epstool-3.09/src/dscparse.c:832:15: note: dsc->epsf is overwritten epstool-3.09/src/dscparse.c:1962:14: style: Variable 'lmedia.name' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/dscparse.c:1959:14: note: lmedia.name is assigned epstool-3.09/src/dscparse.c:1962:14: note: lmedia.name is overwritten epstool-3.09/src/dscparse.c:4501:11: style: Variable 'cyan' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/dscparse.c:4500:11: note: cyan is assigned epstool-3.09/src/dscparse.c:4501:11: note: cyan is overwritten epstool-3.09/src/dscparse.c:4577:10: style: Variable 'red' is reassigned a value before the old one has been used. [redundantAssignment] epstool-3.09/src/dscparse.c:4576:10: note: red is assigned epstool-3.09/src/dscparse.c:4577:10: note: red is overwritten epstool-3.09/src/dscparse.c:318:48: style:inconclusive: Function 'dsc_scan_data' argument 3 names different: declaration 'len' definition 'length'. [funcArgNamesDifferent] epstool-3.09/src/dscparse.h:542:52: note: Function 'dsc_scan_data' argument 3 names different: declaration 'len' definition 'length'. epstool-3.09/src/dscparse.c:318:48: note: Function 'dsc_scan_data' argument 3 names different: declaration 'len' definition 'length'. epstool-3.09/src/dscparse.c:1665:53: style:inconclusive: Function 'dsc_parse_float_bounding_box' argument 2 names different: declaration 'pfbbox' definition 'pbbox'. [funcArgNamesDifferent] epstool-3.09/src/dscparse.c:107:69: note: Function 'dsc_parse_float_bounding_box' argument 2 names different: declaration 'pfbbox' definition 'pbbox'. epstool-3.09/src/dscparse.c:1665:53: note: Function 'dsc_parse_float_bounding_box' argument 2 names different: declaration 'pfbbox' definition 'pbbox'. epstool-3.09/src/dscparse.c:3603:53: style: Parameter 'line' can be declared as pointer to const [constParameter] epstool-3.09/src/dscparse.c:4181:25: style: Variable 'filename_length' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/xdll.c:74:6: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] epstool-3.09/src/xdll.c:74:13: style: Variable 'msglen' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/xnodll.c:43:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] epstool-3.09/src/xnodll.c:43:12: style: Variable 'msglen' is assigned a value that is never used. [unreadVariable] epstool-3.09/srcwin/wdll.c:136:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] epstool-3.09/srcwin/wdll.c:136:10: style: Variable 'msglen' is assigned a value that is never used. [unreadVariable] epstool-3.09/srcwin/wfile.c:37:8: style: struct member 'GFile_s::m_file' is never used. [unusedStructMember] epstool-3.09/src/epstool.c:1481:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1484:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1488:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1492:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1496:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1505:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1508:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1512:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1516:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] epstool-3.09/src/epstool.c:1478:13: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] epstool-3.09/src/epstool.c:1502:13: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] epstool-3.09/src/epstool.c:1525:13: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] epstool-3.09/src/epstool.c:1775:15: style: Condition 'code==0' is always true [knownConditionTrueFalse] epstool-3.09/src/epstool.c:1768:14: note: Assuming that condition 'code!=0' is not redundant epstool-3.09/src/epstool.c:1775:15: note: Condition 'code==0' is always true epstool-3.09/src/epstool.c:1933:38: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/epstool.c:1934:24: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] epstool-3.09/src/epstool.c:370:3: warning: Either the condition 'rs' is redundant or there is possible null pointer dereference: rs. [nullPointerRedundantCheck] epstool-3.09/src/epstool.c:368:10: note: Assuming that condition 'rs' is not redundant epstool-3.09/src/epstool.c:370:3: note: Null pointer dereference epstool-3.09/src/epstool.c:372:8: warning: Either the condition 'rs' is redundant or there is possible null pointer dereference: rs. [nullPointerRedundantCheck] epstool-3.09/src/epstool.c:368:10: note: Assuming that condition 'rs' is not redundant epstool-3.09/src/epstool.c:372:8: note: Null pointer dereference epstool-3.09/src/epstool.c:1149:18: warning: Either the condition 'img==NULL' is redundant or there is possible null pointer dereference: img. [nullPointerRedundantCheck] epstool-3.09/src/epstool.c:1152:11: note: Assuming that condition 'img==NULL' is not redundant epstool-3.09/src/epstool.c:1149:18: note: Null pointer dereference epstool-3.09/src/epstool.c:1150:19: warning: Either the condition 'img==NULL' is redundant or there is possible null pointer dereference: img. [nullPointerRedundantCheck] epstool-3.09/src/epstool.c:1152:11: note: Assuming that condition 'img==NULL' is not redundant epstool-3.09/src/epstool.c:1150:19: note: Null pointer dereference epstool-3.09/src/epstool.c:2494:21: style:inconclusive: Function 'load_string' argument 1 names different: declaration 'app' definition 'a'. [funcArgNamesDifferent] epstool-3.09/src/capp.h:79:25: note: Function 'load_string' argument 1 names different: declaration 'app' definition 'a'. epstool-3.09/src/epstool.c:2494:21: note: Function 'load_string' argument 1 names different: declaration 'app' definition 'a'. epstool-3.09/src/epstool.c:2494:28: style:inconclusive: Function 'load_string' argument 2 names different: declaration 'i' definition 'id'. [funcArgNamesDifferent] epstool-3.09/src/capp.h:79:34: note: Function 'load_string' argument 2 names different: declaration 'i' definition 'id'. epstool-3.09/src/epstool.c:2494:28: note: Function 'load_string' argument 2 names different: declaration 'i' definition 'id'. epstool-3.09/src/epstool.c:2550:29: style:inconclusive: Function 'pagecache_unref_all' argument 1 names different: declaration 'app' definition 'a'. [funcArgNamesDifferent] epstool-3.09/src/cpagec.h:21:33: note: Function 'pagecache_unref_all' argument 1 names different: declaration 'app' definition 'a'. epstool-3.09/src/epstool.c:2550:29: note: Function 'pagecache_unref_all' argument 1 names different: declaration 'app' definition 'a'. epstool-3.09/src/epstool.c:381:9: style: Local variable 'p' shadows outer variable [shadowVariable] epstool-3.09/src/epstool.c:253:18: note: Shadowed declaration epstool-3.09/src/epstool.c:381:9: note: Shadow variable epstool-3.09/src/epstool.c:2494:21: style: Parameter 'a' can be declared as pointer to const [constParameter] epstool-3.09/src/epstool.c:262:5: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:314:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:352:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:419:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:448:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:478:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:484:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:502:6: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:573:3: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:576:3: warning: Division by result of sizeof(). strncpy() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] epstool-3.09/src/epstool.c:1850:13: warning: Size of pointer 'newimg' used instead of size of its data. [pointerSize] epstool-3.09/src/epstool.c:1711:14: style: Variable 'code' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/epstool.c:1715:7: style: Variable 'code' is assigned a value that is never used. [unreadVariable] epstool-3.09/src/epstool.c:1721:7: style: Variable 'code' is assigned a value that is never used. [unreadVariable] diff: head epstool-3.09/src/cbmp.c:288:37: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:303:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:314:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:323:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:340:39: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:349:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:350:71: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:356:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:357:71: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:363:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:713:37: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:714:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:718:35: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:719:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:723:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:724:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:728:35: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cbmp.c:729:21: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cimg.c:1534:25: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/cimg.c:1537:26: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/dscparse.c:3603:53: style: Parameter 'line' can be declared as pointer to const [constParameter] 2.8 epstool-3.09/src/dscparse.c:3603:53: style: Parameter 'line' can be declared with const [constParameter] head epstool-3.09/src/dscutil.c:171:20: style: Parameter 'caller_data' can be declared as pointer to const [constParameter] 2.8 epstool-3.09/src/dscutil.c:171:20: style: Parameter 'caller_data' can be declared with const [constParameter] head epstool-3.09/src/epstool.c:1933:38: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/epstool.c:1934:24: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head epstool-3.09/src/epstool.c:2494:21: style: Parameter 'a' can be declared as pointer to const [constParameter] 2.8 epstool-3.09/src/epstool.c:2494:21: style: Parameter 'a' can be declared with const [constParameter] DONE