2022-06-27 02:15 ftp://ftp.de.debian.org/debian/pool/main/d/deutex/deutex_5.2.2.orig.tar.gz 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: 242afc3 (2022-06-25 21:42:55 +0200) count: 126 126 elapsed-time: 1.7 1.8 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: deutex-5.2.2/src/color.c:262:59: style:inconclusive: Function 'COLindex' argument 4 names different: declaration 'idx' definition 'index'. [funcArgNamesDifferent] deutex-5.2.2/src/color.h:24:59: note: Function 'COLindex' argument 4 names different: declaration 'idx' definition 'index'. deutex-5.2.2/src/color.c:262:59: note: Function 'COLindex' argument 4 names different: declaration 'idx' definition 'index'. deutex-5.2.2/src/color.c:153:62: style: Parameter 'Colors' can be declared as pointer to const [constParameter] deutex-5.2.2/src/compose.c:222:58: warning: Either the condition 'playpal_fp==NULL' is redundant or there is possible null pointer dereference: playpal_fp. [nullPointerRedundantCheck] deutex-5.2.2/src/compose.c:219:36: note: Assuming that condition 'playpal_fp==NULL' is not redundant deutex-5.2.2/src/compose.c:222:58: note: Null pointer dereference deutex-5.2.2/src/compose.c:141:19: style: Variable 'FoundOne' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/deutex.c:150:5: warning:inconclusive: The buffer 'MainWAD' may not be null-terminated after the call to strncpy(). [terminateStrncpy] deutex-5.2.2/src/color.h:13:6: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:15:6: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:16:6: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:24:9: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:25:9: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:26:15: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/color.h:27:15: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] deutex-5.2.2/src/deutex.c:1296:34: style: The if condition is the same as the previous if condition [duplicateCondition] deutex-5.2.2/src/deutex.c:1294:34: note: First condition deutex-5.2.2/src/deutex.c:1296:34: note: Second condition deutex-5.2.2/src/deutex.c:1242:21: style: Variable 'tmp' is reassigned a value before the old one has been used. [redundantAssignment] deutex-5.2.2/src/deutex.c:1240:25: note: tmp is assigned deutex-5.2.2/src/deutex.c:1242:21: note: tmp is overwritten deutex-5.2.2/src/deutex.c:109:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:110:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:111:33: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:112:34: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:118:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:119:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:120:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:121:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:127:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:128:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:129:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:135:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:136:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:142:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:143:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] deutex-5.2.2/src/deutex.c:941:17: style: Local variable 'c' shadows outer variable [shadowVariable] deutex-5.2.2/src/deutex.c:932:13: note: Shadowed declaration deutex-5.2.2/src/deutex.c:941:17: note: Shadow variable deutex-5.2.2/src/deutex.c:942:26: style: Local variable 'v' shadows outer variable [shadowVariable] deutex-5.2.2/src/deutex.c:933:22: note: Shadowed declaration deutex-5.2.2/src/deutex.c:942:26: note: Shadow variable deutex-5.2.2/src/deutex.c:956:17: style: Local variable 'c' shadows outer variable [shadowVariable] deutex-5.2.2/src/deutex.c:932:13: note: Shadowed declaration deutex-5.2.2/src/deutex.c:956:17: note: Shadow variable deutex-5.2.2/src/deutex.c:957:26: style: Local variable 'v' shadows outer variable [shadowVariable] deutex-5.2.2/src/deutex.c:933:22: note: Shadowed declaration deutex-5.2.2/src/deutex.c:957:26: note: Shadow variable deutex-5.2.2/src/deutex.c:864:26: style: Parameter 'argv_non_const' can be declared as const array [constParameter] deutex-5.2.2/src/deutex.c:1118:19: style: Variable 'width2' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/ident.c:786:20: style: Condition 'in_level' is always true [knownConditionTrueFalse] deutex-5.2.2/src/ident.c:766:13: note: Assuming condition '!in_level' is false deutex-5.2.2/src/ident.c:786:20: note: Condition 'in_level' is always true deutex-5.2.2/src/ident.c:829:41: style:inconclusive: Function 'IDENTentriesIWAD' argument 1 names different: declaration 'wad' definition 'info'. [funcArgNamesDifferent] deutex-5.2.2/src/ident.h:15:42: note: Function 'IDENTentriesIWAD' argument 1 names different: declaration 'wad' definition 'info'. deutex-5.2.2/src/ident.c:829:41: note: Function 'IDENTentriesIWAD' argument 1 names different: declaration 'wad' definition 'info'. deutex-5.2.2/src/ident.c:881:42: style:inconclusive: Function 'IDENTentriesPWAD' argument 1 names different: declaration 'wad' definition 'info'. [funcArgNamesDifferent] deutex-5.2.2/src/ident.h:17:41: note: Function 'IDENTentriesPWAD' argument 1 names different: declaration 'wad' definition 'info'. deutex-5.2.2/src/ident.c:881:42: note: Function 'IDENTentriesPWAD' argument 1 names different: declaration 'wad' definition 'info'. deutex-5.2.2/src/ident.c:777:25: style: Local variable 'n' shadows outer variable [shadowVariable] deutex-5.2.2/src/ident.c:751:13: note: Shadowed declaration deutex-5.2.2/src/ident.c:777:25: note: Shadow variable deutex-5.2.2/src/ident.c:41:10: style: struct member 'Anonymous0::mandatory' is never used. [unusedStructMember] deutex-5.2.2/src/ident.c:45:17: style: struct member 'Anonymous0::flags' is never used. [unusedStructMember] deutex-5.2.2/src/extract.c:216:55: error: Uninitialized variable: lumpsz [legacyUninitvar] deutex-5.2.2/src/extract.c:478:24: style: Variable 'ostart' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/extract.c:479:23: style: Variable 'osize' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/listdir.c:563:18: style:inconclusive: Boolean expression 'cs>0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] deutex-5.2.2/src/listdir.c:565:18: style:inconclusive: Boolean expression 'cs<1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] deutex-5.2.2/src/listdir.c:597:18: style:inconclusive: Boolean expression 'cs>0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] deutex-5.2.2/src/listdir.c:599:18: style:inconclusive: Boolean expression 'cs<1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] deutex-5.2.2/src/listdir.c:194:17: style: Variable 'typ' is reassigned a value before the old one has been used. [redundantAssignment] deutex-5.2.2/src/listdir.c:182:17: note: typ is assigned deutex-5.2.2/src/listdir.c:194:17: note: typ is overwritten deutex-5.2.2/src/listdir.c:327:25: style: Parameter 'tex' can be declared as pointer to const [constParameter] deutex-5.2.2/src/lists.c:395:50: style:inconclusive: Function 'LISmergeDir' argument 2 names different: declaration 'OnlySF' definition 'Append'. [funcArgNamesDifferent] deutex-5.2.2/src/lists.h:13:50: note: Function 'LISmergeDir' argument 2 names different: declaration 'OnlySF' definition 'Append'. deutex-5.2.2/src/lists.c:395:50: note: Function 'LISmergeDir' argument 2 names different: declaration 'OnlySF' definition 'Append'. deutex-5.2.2/src/lists.c:61:35: style: Parameter 'ids' can be declared as pointer to const [constParameter] deutex-5.2.2/src/mkwad.c:679:51: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/mkwad.c:675:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/mkwad.c:679:51: note: Null pointer dereference deutex-5.2.2/src/mkwad.c:204:26: style:inconclusive: Function 'WADRdirAddEntry' argument 4 names different: declaration 'name' definition 'entry'. [funcArgNamesDifferent] deutex-5.2.2/src/mkwad.h:39:26: note: Function 'WADRdirAddEntry' argument 4 names different: declaration 'name' definition 'entry'. deutex-5.2.2/src/mkwad.c:204:26: note: Function 'WADRdirAddEntry' argument 4 names different: declaration 'name' definition 'entry'. deutex-5.2.2/src/mkwad.c:416:51: style:inconclusive: Function 'WADRreadEntry' argument 2 names different: declaration 'N' definition 'n'. [funcArgNamesDifferent] deutex-5.2.2/src/mkwad.h:73:51: note: Function 'WADRreadEntry' argument 2 names different: declaration 'N' definition 'n'. deutex-5.2.2/src/mkwad.c:416:51: note: Function 'WADRreadEntry' argument 2 names different: declaration 'N' definition 'n'. deutex-5.2.2/src/mkwad.c:473:50: style:inconclusive: Function 'WADRsaveEntry' argument 2 names different: declaration 'N' definition 'n'. [funcArgNamesDifferent] deutex-5.2.2/src/mkwad.h:75:50: note: Function 'WADRsaveEntry' argument 2 names different: declaration 'N' definition 'n'. deutex-5.2.2/src/mkwad.c:473:50: note: Function 'WADRsaveEntry' argument 2 names different: declaration 'N' definition 'n'. deutex-5.2.2/src/mkwad.c:702:37: style:inconclusive: Function 'WADRwriteWADlevelParts' argument 3 names different: declaration 'n' definition 'N'. [funcArgNamesDifferent] deutex-5.2.2/src/mkwad.h:63:37: note: Function 'WADRwriteWADlevelParts' argument 3 names different: declaration 'n' definition 'N'. deutex-5.2.2/src/mkwad.c:702:37: note: Function 'WADRwriteWADlevelParts' argument 3 names different: declaration 'n' definition 'N'. deutex-5.2.2/src/mkwad.c:605:23: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/mkwad.c:629:23: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/mkwad.c:649:23: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/mkwad.c:669:22: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/merge.c:320:60: style:inconclusive: Function 'ADDappendSpriteFloor' argument 2 names different: declaration 'wadin' definition 'wadres'. [funcArgNamesDifferent] deutex-5.2.2/src/merge.h:18:60: note: Function 'ADDappendSpriteFloor' argument 2 names different: declaration 'wadin' definition 'wadres'. deutex-5.2.2/src/merge.c:320:60: note: Function 'ADDappendSpriteFloor' argument 2 names different: declaration 'wadin' definition 'wadres'. deutex-5.2.2/src/merge.c:505:25: style:inconclusive: Function 'ADDallSpriteFloor' argument 3 names different: declaration 'wadin' definition 'wadres'. [funcArgNamesDifferent] deutex-5.2.2/src/merge.h:16:36: note: Function 'ADDallSpriteFloor' argument 3 names different: declaration 'wadin' definition 'wadres'. deutex-5.2.2/src/merge.c:505:25: note: Function 'ADDallSpriteFloor' argument 3 names different: declaration 'wadin' definition 'wadres'. deutex-5.2.2/src/merge.c:128:18: style: Variable 'size' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/merge.c:128:29: style: Variable 'wsize' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/png_tools.c:57:9: error: Resource leak: fd [resourceLeak] deutex-5.2.2/src/png_tools.c:57:9: error: Memory leak: buffer [memleak] deutex-5.2.2/src/png_tools.c:150:52: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/png_tools.c:147:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/png_tools.c:150:52: note: Null pointer dereference deutex-5.2.2/src/png_tools.c:151:42: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/png_tools.c:147:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/png_tools.c:151:42: note: Null pointer dereference deutex-5.2.2/src/png_tools.c:18:38: style: Parameter 'buf' can be declared as pointer to const [constParameter] deutex-5.2.2/src/png_tools.c:99:18: style: Variable 'IDATpos' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/png_tools.c:123:18: style: Variable 'IDATpos' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/png_tools.c:124:20: style: Variable 'grabsz' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/picture.c:1011:5: warning:inconclusive: The buffer 'sig' may not be null-terminated after the call to strncpy(). [terminateStrncpy] deutex-5.2.2/src/picture.c:1592:5: warning:inconclusive: The buffer 'GifIdent' may not be null-terminated after the call to strncpy(). [terminateStrncpy] deutex-5.2.2/src/picture.c:1349:9: error: Resource handle 'fd' freed twice. [doubleFree] deutex-5.2.2/src/picture.c:1345:9: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:1349:9: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:1357:9: error: Resource handle 'fd' freed twice. [doubleFree] deutex-5.2.2/src/picture.c:1345:9: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:1357:9: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:1370:13: error: Resource handle 'fd' freed twice. [doubleFree] deutex-5.2.2/src/picture.c:1345:9: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:1370:13: note: Resource handle 'fd' freed twice. deutex-5.2.2/src/picture.c:878:26: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:876:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:878:26: note: Null pointer dereference deutex-5.2.2/src/picture.c:1012:27: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1003:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1012:27: note: Null pointer dereference deutex-5.2.2/src/picture.c:1077:13: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1074:12: note: Assuming that condition 'fp==NULL' is not redundant deutex-5.2.2/src/picture.c:1077:13: note: Null pointer dereference deutex-5.2.2/src/picture.c:1105:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1103:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1105:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1344:31: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1338:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1344:31: note: Null pointer dereference deutex-5.2.2/src/picture.c:1593:28: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1593:28: note: Null pointer dereference deutex-5.2.2/src/picture.c:1596:48: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1596:48: note: Null pointer dereference deutex-5.2.2/src/picture.c:1598:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1598:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1599:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1599:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1600:48: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1600:48: note: Null pointer dereference deutex-5.2.2/src/picture.c:1601:16: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1601:16: note: Null pointer dereference deutex-5.2.2/src/picture.c:1607:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1607:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1609:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1609:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1618:14: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1618:14: note: Null pointer dereference deutex-5.2.2/src/picture.c:1619:16: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1619:16: note: Null pointer dereference deutex-5.2.2/src/picture.c:1620:16: warning: Either the condition 'fd==NULL' is redundant or there is possible null pointer dereference: fd. [nullPointerRedundantCheck] deutex-5.2.2/src/picture.c:1588:12: note: Assuming that condition 'fd==NULL' is not redundant deutex-5.2.2/src/picture.c:1620:16: note: Null pointer dereference deutex-5.2.2/src/picture.c:48:44: style:inconclusive: Function 'parse_pic_header' argument 2 names different: declaration 'size' definition 'bufsz'. [funcArgNamesDifferent] deutex-5.2.2/src/picture.h:40:44: note: Function 'parse_pic_header' argument 2 names different: declaration 'size' definition 'bufsz'. deutex-5.2.2/src/picture.c:48:44: note: Function 'parse_pic_header' argument 2 names different: declaration 'size' definition 'bufsz'. deutex-5.2.2/src/picture.c:769:38: style:inconclusive: Function 'snea_to_raw' argument 5 names different: declaration 'snea' definition 'sneabuf'. [funcArgNamesDifferent] deutex-5.2.2/src/picture.c:119:38: note: Function 'snea_to_raw' argument 5 names different: declaration 'snea' definition 'sneabuf'. deutex-5.2.2/src/picture.c:769:38: note: Function 'snea_to_raw' argument 5 names different: declaration 'snea' definition 'sneabuf'. deutex-5.2.2/src/picture.c:407:47: style: Parameter 'raw' can be declared as pointer to const [constParameter] deutex-5.2.2/src/picture.c:987:40: style: Parameter 'raw' can be declared as pointer to const [constParameter] deutex-5.2.2/src/picture.c:1280:13: style: struct member 'Anonymous1::Width' is never used. [unusedStructMember] deutex-5.2.2/src/picture.c:1281:13: style: struct member 'Anonymous1::Height' is never used. [unusedStructMember] deutex-5.2.2/src/picture.c:293:13: style: Variable 'altXinsr' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/picture.c:293:27: style: Variable 'altYinsr' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/picture.c:413:33: style: Variable 'number_of_pix_index' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/picture.c:414:29: style: Variable 'first_pix_index' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/sound.c:59:48: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] deutex-5.2.2/src/sound.c:50:12: note: Assuming that condition 'fp==NULL' is not redundant deutex-5.2.2/src/sound.c:59:48: note: Null pointer dereference deutex-5.2.2/src/sound.c:68:47: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] deutex-5.2.2/src/sound.c:50:12: note: Assuming that condition 'fp==NULL' is not redundant deutex-5.2.2/src/sound.c:68:47: note: Null pointer dereference deutex-5.2.2/src/sound.c:71:48: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] deutex-5.2.2/src/sound.c:50:12: note: Assuming that condition 'fp==NULL' is not redundant deutex-5.2.2/src/sound.c:71:48: note: Null pointer dereference deutex-5.2.2/src/sound.c:90:51: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] deutex-5.2.2/src/sound.c:87:12: note: Assuming that condition 'fp==NULL' is not redundant deutex-5.2.2/src/sound.c:90:51: note: Null pointer dereference deutex-5.2.2/src/sound.c:158:67: style:inconclusive: Function 'SNDsaveSound' argument 4 names different: declaration 'Sound' definition 'format'. [funcArgNamesDifferent] deutex-5.2.2/src/sound.h:12:67: note: Function 'SNDsaveSound' argument 4 names different: declaration 'Sound' definition 'format'. deutex-5.2.2/src/sound.c:158:67: note: Function 'SNDsaveSound' argument 4 names different: declaration 'Sound' definition 'format'. deutex-5.2.2/src/sound.c:202:64: style:inconclusive: Function 'SNDcopyInWAD' argument 3 names different: declaration 'Sound' definition 'format'. [funcArgNamesDifferent] deutex-5.2.2/src/sound.h:14:64: note: Function 'SNDcopyInWAD' argument 3 names different: declaration 'Sound' definition 'format'. deutex-5.2.2/src/sound.c:202:64: note: Function 'SNDcopyInWAD' argument 3 names different: declaration 'Sound' definition 'format'. deutex-5.2.2/src/sound.c:278:33: style:inconclusive: Function 'SNDsavePCSound' argument 1 names different: declaration 'name' definition 'lumpname'. [funcArgNamesDifferent] deutex-5.2.2/src/sound.h:15:33: note: Function 'SNDsavePCSound' argument 1 names different: declaration 'name' definition 'lumpname'. deutex-5.2.2/src/sound.c:278:33: note: Function 'SNDsavePCSound' argument 1 names different: declaration 'name' definition 'lumpname'. deutex-5.2.2/src/text.c:432:55: style:inconclusive: Function 'TXTseekSection' argument 2 names different: declaration 'def' definition 'section'. [funcArgNamesDifferent] deutex-5.2.2/src/text.h:40:54: note: Function 'TXTseekSection' argument 2 names different: declaration 'def' definition 'section'. deutex-5.2.2/src/text.c:432:55: note: Function 'TXTseekSection' argument 2 names different: declaration 'def' definition 'section'. deutex-5.2.2/src/tools.c:56:5: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] deutex-5.2.2/src/tools.c:492:22: style: Redundant condition: left!=NULL. 'left==NULL || (left!=NULL && *left>0)' is equivalent to 'left==NULL || *left>0' [redundantCondition] deutex-5.2.2/src/tools.c:476:44: style:inconclusive: Function 'Warning' argument 2 names different: declaration 'str' definition 'fmt'. [funcArgNamesDifferent] deutex-5.2.2/src/tools.h:37:44: note: Function 'Warning' argument 2 names different: declaration 'str' definition 'fmt'. deutex-5.2.2/src/tools.c:476:44: note: Function 'Warning' argument 2 names different: declaration 'str' definition 'fmt'. deutex-5.2.2/src/tools.c:508:25: style: Parameter 'left' can be declared as pointer to const [constParameter] deutex-5.2.2/src/tools.c:258:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] deutex-5.2.2/src/texture.c:699:13: warning: Either the condition 'out==NULL' is redundant or there is possible null pointer dereference: out. [nullPointerRedundantCheck] deutex-5.2.2/src/texture.c:696:13: note: Assuming that condition 'out==NULL' is not redundant deutex-5.2.2/src/texture.c:699:13: note: Null pointer dereference deutex-5.2.2/src/texture.c:700:13: warning: Either the condition 'out==NULL' is redundant or there is possible null pointer dereference: out. [nullPointerRedundantCheck] deutex-5.2.2/src/texture.c:696:13: note: Assuming that condition 'out==NULL' is not redundant deutex-5.2.2/src/texture.c:700:13: note: Null pointer dereference deutex-5.2.2/src/texture.c:701:13: warning: Either the condition 'out==NULL' is redundant or there is possible null pointer dereference: out. [nullPointerRedundantCheck] deutex-5.2.2/src/texture.c:696:13: note: Assuming that condition 'out==NULL' is not redundant deutex-5.2.2/src/texture.c:701:13: note: Null pointer dereference deutex-5.2.2/src/texture.c:538:44: style: Parameter 'PszX' can be declared as pointer to const [constParameter] deutex-5.2.2/src/texture.c:65:40: warning: Expression 'PNMmax' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversionCond] deutex-5.2.2/src/texture.c:58:20: note: Assuming that condition 'pnames>0x7FFFL' is not redundant deutex-5.2.2/src/texture.c:64:14: note: Assignment 'PNMmax=(int16_t)(pnames+0x40)', assigned value is -32704 deutex-5.2.2/src/texture.c:65:40: note: Negative value is converted to an unsigned value deutex-5.2.2/src/usedidx.c:31:5: warning: Either the condition 'cusage==NULL' is redundant or there is possible null pointer dereference: cusage. [nullPointerRedundantCheck] deutex-5.2.2/src/usedidx.c:29:16: note: Assuming that condition 'cusage==NULL' is not redundant deutex-5.2.2/src/usedidx.c:31:5: note: Null pointer dereference deutex-5.2.2/src/usedidx.c:33:9: warning: Either the condition 'cusage==NULL' is redundant or there is possible null pointer dereference: cusage. [nullPointerRedundantCheck] deutex-5.2.2/src/usedidx.c:29:16: note: Assuming that condition 'cusage==NULL' is not redundant deutex-5.2.2/src/usedidx.c:33:9: note: Null pointer dereference deutex-5.2.2/src/usedidx.c:34:12: warning: Either the condition 'cusage==NULL' is redundant or there is possible null pointer dereference: cusage. [nullPointerRedundantCheck] deutex-5.2.2/src/usedidx.c:29:16: note: Assuming that condition 'cusage==NULL' is not redundant deutex-5.2.2/src/usedidx.c:34:12: note: Null pointer dereference deutex-5.2.2/src/usedidx.c:56:13: warning: Either the condition 'cusage==NULL' is redundant or there is possible null pointer dereference: cusage. [nullPointerRedundantCheck] deutex-5.2.2/src/usedidx.c:53:16: note: Assuming that condition 'cusage==NULL' is not redundant deutex-5.2.2/src/usedidx.c:56:13: note: Null pointer dereference diff: head deutex-5.2.2/src/color.c:153:62: style: Parameter 'Colors' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/color.c:153:62: style: Parameter 'Colors' can be declared with const [constParameter] head deutex-5.2.2/src/deutex.c:864:26: style: Parameter 'argv_non_const' can be declared as const array [constParameter] 2.8 deutex-5.2.2/src/deutex.c:864:26: style: Parameter 'argv_non_const' can be declared with const [constParameter] head deutex-5.2.2/src/listdir.c:327:25: style: Parameter 'tex' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/listdir.c:327:25: style: Parameter 'tex' can be declared with const [constParameter] head deutex-5.2.2/src/lists.c:61:35: style: Parameter 'ids' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/lists.c:61:35: style: Parameter 'ids' can be declared with const [constParameter] head deutex-5.2.2/src/picture.c:407:47: style: Parameter 'raw' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/picture.c:407:47: style: Parameter 'raw' can be declared with const [constParameter] head deutex-5.2.2/src/picture.c:987:40: style: Parameter 'raw' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/picture.c:987:40: style: Parameter 'raw' can be declared with const [constParameter] head deutex-5.2.2/src/png_tools.c:18:38: style: Parameter 'buf' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/png_tools.c:18:38: style: Parameter 'buf' can be declared with const [constParameter] head deutex-5.2.2/src/texture.c:538:44: style: Parameter 'PszX' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/texture.c:538:44: style: Parameter 'PszX' can be declared with const [constParameter] head deutex-5.2.2/src/tools.c:508:25: style: Parameter 'left' can be declared as pointer to const [constParameter] 2.8 deutex-5.2.2/src/tools.c:508:25: style: Parameter 'left' can be declared with const [constParameter] DONE