2025-07-06 14:08 ftp://ftp.de.debian.org/debian/pool/main/w/w1retap/w1retap_1.5.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sqlite3 --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 -j1 platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 839 831 elapsed-time: 37.4 39.3 head-timing-info: old-timing-info: head results: w1retap/src/libusblinux300/acquire.c:75:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_LIB_DIR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/acquire.c:63:29: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/acquire.c:64:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/atod20.c:284:38: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/atod20.c:101:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:98:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:101:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:103:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:101:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:103:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:182:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:178:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:182:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:186:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:182:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:186:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:259:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:254:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:259:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:260:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/atod20.c:259:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/atod20.c:260:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/atod20.c:86:72: style: Parameter 'ctrl' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/atod20.c:238:92: style: Parameter 'ctrl' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/atod20.c:103:13: style: Variable 'lastcrc16' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/atodtst.c:83:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/atodtst.c:54:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/braybaro.c:82:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/braybaro.c:62:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/cnt1d.c:70:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/cnt1d.c:66:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/cnt1d.c:70:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/cnt1d.c:72:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/cnt1d.c:70:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/cnt1d.c:72:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/counter.c:78:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/counter.c:105:13: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/coupler.c:65:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds192x.c:54:38: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ds2408lcd.c:17:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.c:52:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.c:125:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.c:92:9: style: Variable 'c' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] w1retap/src/libusblinux300/ds2408lcd.c:90:9: note: $symbol is assigned w1retap/src/libusblinux300/ds2408lcd.c:92:9: note: $symbol is overwritten w1retap/src/libusblinux300/ds2408lcd.c:110:43: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ds2408lcd.new.c:17:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.new.c:52:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.new.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.new.c:125:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ds2408lcd.new.c:92:9: style: Variable 'c' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] w1retap/src/libusblinux300/ds2408lcd.new.c:90:9: note: $symbol is assigned w1retap/src/libusblinux300/ds2408lcd.new.c:92:9: note: $symbol is overwritten w1retap/src/libusblinux300/ds2408lcd.new.c:110:43: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/fish.c:112:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/fish.c:1232:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/fish.c:1397:31: style: Parameter 'dirpath' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/fish.c:1397:51: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/fish.c:1225:7: warning: Uninitialized variables: dirpath.NumEntries, dirpath.Ref [uninitvar] w1retap/src/libusblinux300/fish.c:1185:9: note: Assuming condition is false w1retap/src/libusblinux300/fish.c:1225:7: note: Uninitialized variables: dirpath.NumEntries, dirpath.Ref w1retap/src/libusblinux300/fish.c:1207:8: style: Variable 'done' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/hbht.c:103:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbht.c:129:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbht.c:35:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] w1retap/src/libusblinux300/hbht.c:33:18: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/hbhttest.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbhttest.c:85:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbhttest.c:13:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/hbhttest.c:121:20: note: Assuming allocation function fails w1retap/src/libusblinux300/hbhttest.c:121:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/hbhttest.c:122:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/hbhttest.c:13:5: note: Null pointer dereference w1retap/src/libusblinux300/hbhttest.c:15:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/hbhttest.c:121:20: note: Assuming allocation function fails w1retap/src/libusblinux300/hbhttest.c:121:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/hbhttest.c:122:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/hbhttest.c:15:5: note: Null pointer dereference w1retap/src/libusblinux300/hbhttest.c:10:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/hbuv.c:25:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] w1retap/src/libusblinux300/hbuv.c:23:18: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/hbuvtest.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbuvtest.c:87:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/hbuvtest.c:13:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/hbuvtest.c:123:20: note: Assuming allocation function fails w1retap/src/libusblinux300/hbuvtest.c:123:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/hbuvtest.c:124:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/hbuvtest.c:13:5: note: Null pointer dereference w1retap/src/libusblinux300/hbuvtest.c:15:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/hbuvtest.c:123:20: note: Assuming allocation function fails w1retap/src/libusblinux300/hbuvtest.c:123:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/hbuvtest.c:124:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/hbuvtest.c:15:5: note: Null pointer dereference w1retap/src/libusblinux300/hbuvtest.c:10:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/humalog.c:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/humid.c:35:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/humid.c:53:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/humid.c:7:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/humutil.c:608:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/humutil.c:523:9: style: Condition '!readDevice(portnum,SNum,state,config)' is always false [knownConditionTrueFalse] w1retap/src/libusblinux300/humutil.c:523:20: note: Calling function 'readDevice' returns 1 w1retap/src/libusblinux300/humutil.c:523:9: note: Condition '!readDevice(portnum,SNum,state,config)' is always false w1retap/src/libusblinux300/humutil.c:677:7: style: Condition '!readDevice(portnum,SNum,state,&tempConfig)' is always false [knownConditionTrueFalse] w1retap/src/libusblinux300/humutil.c:677:18: note: Calling function 'readDevice' returns 1 w1retap/src/libusblinux300/humutil.c:677:7: note: Condition '!readDevice(portnum,SNum,state,&tempConfig)' is always false w1retap/src/libusblinux300/humutil.c:813:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fidTemp [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:811:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:811:20: note: Assignment 'fidTemp=fopen("temp.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:813:13: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:814:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fidTemp [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:811:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:811:20: note: Assignment 'fidTemp=fopen("temp.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:814:13: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:817:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fidTemp [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:811:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:811:20: note: Assignment 'fidTemp=fopen("temp.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:817:15: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:830:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fidTemp [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:811:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:811:20: note: Assignment 'fidTemp=fopen("temp.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:830:12: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:842:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fidData [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:840:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:840:20: note: Assignment 'fidData=fopen("data.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:842:13: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:843:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fidData [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:840:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:840:20: note: Assignment 'fidData=fopen("data.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:843:13: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:846:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fidData [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:840:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:840:20: note: Assignment 'fidData=fopen("data.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:846:15: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:897:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fidData [nullPointerOutOfResources] w1retap/src/libusblinux300/humutil.c:840:20: note: Assuming allocation function fails w1retap/src/libusblinux300/humutil.c:840:20: note: Assignment 'fidData=fopen("data.log","a+")', assigned value is 0 w1retap/src/libusblinux300/humutil.c:897:12: note: Null pointer dereference w1retap/src/libusblinux300/humutil.c:1008:28: style:inconclusive: Function 'getADVoltage' argument 1 names different: declaration 'state' definition 'data'. [funcArgNamesDifferent] w1retap/src/libusblinux300/humutil.h:80:28: note: Function 'getADVoltage' argument 1 names different: declaration 'state' definition 'data'. w1retap/src/libusblinux300/humutil.c:1008:28: note: Function 'getADVoltage' argument 1 names different: declaration 'state' definition 'data'. w1retap/src/libusblinux300/humutil.c:512:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/humutil.c:1008:28: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/humutil.c:1113:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/humutil.c:299:9: style: Variable 'read1' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ibsha33o.c:118:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/ibsha33o.c:115:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/ibsha33o.c:118:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/ibsha33o.c:121:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/ibsha33o.c:118:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/ibsha33o.c:121:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/ibsha33o.c:585:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/ibsha33o.c:581:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/ibsha33o.c:585:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/ibsha33o.c:588:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/ibsha33o.c:585:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/ibsha33o.c:588:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/ibsha33o.c:105:59: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:273:58: style: Parameter 'secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:273:73: style: Parameter 'sn' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:273:84: style: Parameter 'memory' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:522:59: style: Parameter 'secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:522:74: style: Parameter 'SerNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:744:33: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibsha33o.c:755:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/ibshaut.c:194:5: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/ibshaut.c:57:23: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibshaut.c:74:37: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ibshaut.c:131:9: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ibshaut.c:153:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initcopr.c:78:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_ERROR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/initcopr.c:141:6: error: Array 'buf[6]' accessed at index 6, which is out of bounds. [arrayIndexOutOfBounds] w1retap/src/libusblinux300/initcopr.c:142:6: error: Array 'buf[6]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] w1retap/src/libusblinux300/initcopr.c:68:42: style: Condition 'argc>1' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/initcopr.c:68:27: note: Assuming that condition 'argc<2' is not redundant w1retap/src/libusblinux300/initcopr.c:68:42: note: Condition 'argc>1' is always true w1retap/src/libusblinux300/initrov.c:91:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_ERROR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/initrov.c:216:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_ERROR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/initrov.c:80:42: style: Condition 'argc>1' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/initrov.c:80:27: note: Assuming that condition 'argc<2' is not redundant w1retap/src/libusblinux300/initrov.c:80:42: note: Condition 'argc>1' is always true w1retap/src/libusblinux300/initrov.c:148:9: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:215:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:229:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:247:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:256:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:265:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:286:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:296:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:305:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:313:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/initrov.c:315:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ioutil.c:270:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ioutil.c:292:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ioutil.c:64:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:135:20: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:211:20: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:319:21: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:373:22: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:384:24: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ioutil.c:391:28: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/jib96.c:883:7: style: Condition 'l_lpResponseAPDU' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/jib96.c:1141:47: style: Parameter 'p_lpAppletBuffer' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/jib96o.c:204:35: style:inconclusive: Boolean expression '(owms&31)>1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] w1retap/src/libusblinux300/jib96o.c:160:27: style: Condition 'ETime>=8' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/jib96o.c:158:26: note: Assuming that condition 'ETime<8' is not redundant w1retap/src/libusblinux300/jib96o.c:160:27: note: Condition 'ETime>=8' is always true w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:740:15: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:807:15: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:813:15: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:836:17: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:843:15: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:905:16: style: Variable 'error' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:867:15: note: error is assigned w1retap/src/libusblinux300/jib96o.c:905:16: note: error is overwritten w1retap/src/libusblinux300/jib96o.c:1069:13: style: Variable 'crc' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/jib96o.c:1029:11: note: crc is assigned w1retap/src/libusblinux300/jib96o.c:1069:13: note: crc is overwritten w1retap/src/libusblinux300/jib96o.c:1228:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/jib96o.c:1302:24: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/jib96o.c:385:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:386:20: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:475:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:528:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:536:20: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:584:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:619:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:653:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:686:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:991:18: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:1058:20: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:1060:22: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:1115:20: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jib96o.c:1116:22: style: Variable 'error' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jibload.c:72:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/jibload.c:134:26: style: Parameter 'p_FileName' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/jibmodpw.c:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/jibtest.c:63:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/jibtest.c:161:5: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/jibtest.c:173:5: warning: %hd in format string (no. 1) requires 'short' but the argument type is 'signed int'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/jibtest.c:233:5: warning: %hd in format string (no. 1) requires 'short' but the argument type is 'signed int'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/jibtest.c:245:5: warning: %hd in format string (no. 1) requires 'short' but the argument type is 'signed int'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/jibtest.c:99:94: style: Variable 'l_CurrentLength' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/jibtest.c:100:18: style: Variable 'l_FreeRam' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/lcdtest.c:56:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/lcdtest.c:110:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/lcdtest.c:15:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/lcdtest.c:94:22: note: Assuming allocation function fails w1retap/src/libusblinux300/lcdtest.c:94:22: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/lcdtest.c:95:31: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/lcdtest.c:15:5: note: Null pointer dereference w1retap/src/libusblinux300/lcdtest.c:17:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/lcdtest.c:94:22: note: Assuming allocation function fails w1retap/src/libusblinux300/lcdtest.c:94:22: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/lcdtest.c:95:31: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/lcdtest.c:17:5: note: Null pointer dereference w1retap/src/libusblinux300/lcdtest.c:112:16: warning: If memory allocation fails, then there is a possible null pointer dereference: txt2 [nullPointerOutOfMemory] w1retap/src/libusblinux300/lcdtest.c:111:20: note: Assuming allocation function fails w1retap/src/libusblinux300/lcdtest.c:111:20: note: Assignment 'txt2=malloc(20)', assigned value is 0 w1retap/src/libusblinux300/lcdtest.c:112:16: note: Null pointer dereference w1retap/src/libusblinux300/lcdtest.c:125:53: warning: If memory allocation fails, then there is a possible null pointer dereference: txt2 [nullPointerOutOfMemory] w1retap/src/libusblinux300/lcdtest.c:111:20: note: Assuming allocation function fails w1retap/src/libusblinux300/lcdtest.c:111:20: note: Assignment 'txt2=malloc(20)', assigned value is 0 w1retap/src/libusblinux300/lcdtest.c:125:53: note: Null pointer dereference w1retap/src/libusblinux300/lcdtest.c:12:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/lcdtest.c:108:18: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/libusbds2490.c:285:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] w1retap/src/libusblinux300/libusbds2490.c:90:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:195:19: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:220:23: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:222:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:244:14: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:285:17: style: Variable 'pResultSize' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbds2490.c:308:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:69:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:126:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:177:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:247:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:279:16: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:312:19: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:365:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:450:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbllnk.c:548:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbnet.c:166:17: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbses.c:211:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/libusbses.c:91:5: warning: Return value of function strsep() is not used. [ignoredReturnValue] w1retap/src/libusblinux300/libusbses.c:112:47: style: Condition 'portnum==0' is always false [knownConditionTrueFalse] w1retap/src/libusblinux300/libusbses.c:100:15: note: Assuming that condition 'portnum<1' is not redundant w1retap/src/libusblinux300/libusbses.c:112:47: note: Condition 'portnum==0' is always false w1retap/src/libusblinux300/libusbses.c:85:24: style: Parameter 'port_zstr' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/libusbses.c:157:11: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbtran.c:71:16: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/libusbtran.c:119:21: style: Variable 'setup.DataOut' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/linuxlnk.c:168:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/linuxlnk.c:224:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSAFLUSH [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/linuxlnk.c:292:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCIOFLUSH [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/linuxlnk.c:332:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B9600 [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/linuxlnk.c:155:37: style: Parameter 'port_zstr' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/linuxlnk.c:239:51: style: Parameter 'outbuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:527:10: warning: Either the condition 'len>(8-2)' is redundant or the array 'raw_buf[8]' is accessed at index 8, which is out of bounds. [arrayIndexOutOfBoundsCond] w1retap/src/libusblinux300/mbappreg.c:512:12: note: Assuming that condition 'len>(8-2)' is not redundant w1retap/src/libusblinux300/mbappreg.c:527:10: note: Array index out of bounds w1retap/src/libusblinux300/mbappreg.c:397:55: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbappreg.c:462:55: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbappreg.c:236:70: style:inconclusive: Function 'readPageAppReg' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbappreg.h:37:70: note: Function 'readPageAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:236:70: note: Function 'readPageAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:279:75: style:inconclusive: Function 'readPageExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbappreg.h:38:75: note: Function 'readPageExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:279:75: note: Function 'readPageExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:386:76: style:inconclusive: Function 'readPagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbappreg.h:41:76: note: Function 'readPagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:386:76: note: Function 'readPagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:444:81: style:inconclusive: Function 'readPagePacketExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbappreg.h:42:81: note: Function 'readPagePacketExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:444:81: note: Function 'readPagePacketExtraAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:506:77: style:inconclusive: Function 'writePagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbappreg.h:44:77: note: Function 'writePagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:506:77: note: Function 'writePagePacketAppReg' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbappreg.c:150:83: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:351:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:351:89: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:506:90: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:544:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:554:41: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:566:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:576:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:586:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:599:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:609:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:619:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:630:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:642:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:654:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:666:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:681:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:694:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:706:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:719:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:732:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:749:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:761:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:774:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:859:72: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:875:64: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:889:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbappreg.c:906:67: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:357:55: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbee.c:432:73: style:inconclusive: Function 'writePagePacketEE' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbee.h:44:73: note: Function 'writePagePacketEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbee.c:432:73: note: Function 'writePagePacketEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbee.c:270:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:270:102: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:270:115: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:293:64: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:293:87: style: Parameter 'read_buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:293:105: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:312:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:312:82: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:406:67: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:406:108: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:406:119: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:407:39: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:432:86: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:471:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:481:37: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:493:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:503:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:513:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:526:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:536:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:547:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:557:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:569:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:581:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:593:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:608:47: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:621:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:633:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:646:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:659:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:721:61: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:797:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:809:46: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee.c:822:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:672:57: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbee77.c:677:63: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbee77.c:323:81: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:467:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:467:104: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:467:117: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:491:66: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:491:89: style: Parameter 'read_buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:491:107: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:727:69: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:727:110: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:727:121: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:728:41: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:754:88: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:809:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:819:39: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:831:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:841:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:856:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:869:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:879:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:890:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:900:60: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:912:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:924:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:936:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:951:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:964:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:976:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:989:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:1002:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:1024:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:1036:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbee77.c:1049:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:519:75: style:inconclusive: Function 'readPagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbeprom.h:41:75: note: Function 'readPagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:519:75: note: Function 'readPagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:578:80: style:inconclusive: Function 'readPagePacketExtraEPROM' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbeprom.h:42:80: note: Function 'readPagePacketExtraEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:578:80: note: Function 'readPagePacketExtraEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:635:76: style:inconclusive: Function 'writePagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbeprom.h:44:76: note: Function 'writePagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:635:76: note: Function 'writePagePacketEPROM' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbeprom.c:635:89: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:680:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:741:40: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:804:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:851:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:895:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:958:60: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1002:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1013:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1023:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1035:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1047:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1059:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1074:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1121:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1167:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1211:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1519:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1566:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1614:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1654:41: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1699:44: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1741:44: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1781:45: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbeprom.c:1828:47: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:709:19: style: Condition 'bank==1' is always false [knownConditionTrueFalse] w1retap/src/libusblinux300/mbnv.c:707:14: note: Assuming that condition 'bank<=3' is not redundant w1retap/src/libusblinux300/mbnv.c:709:19: note: Condition 'bank==1' is always false w1retap/src/libusblinux300/mbnv.c:465:74: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbnv.c:326:66: style:inconclusive: Function 'readPageNV' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbnv.h:37:66: note: Function 'readPageNV' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbnv.c:326:66: note: Function 'readPageNV' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbnv.c:512:77: style:inconclusive: Function 'readPagePacketExtraNV' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbnv.h:42:77: note: Function 'readPagePacketExtraNV' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbnv.c:512:77: note: Function 'readPagePacketExtraNV' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbnv.c:536:86: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:581:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:661:37: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:749:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:804:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:814:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:869:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:910:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:944:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:954:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:990:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1002:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1014:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1029:47: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1067:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1110:48: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1147:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1190:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1203:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1215:46: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnv.c:1228:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnvcrc.c:318:45: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbnvcrc.c:350:47: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:413:59: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscr.c:481:59: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscr.c:403:77: style:inconclusive: Function 'readPagePacketScratch' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbscr.h:42:77: note: Function 'readPagePacketScratch' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbscr.c:403:77: note: Function 'readPagePacketScratch' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbscr.c:461:82: style:inconclusive: Function 'readPagePacketExtraScratch' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbscr.h:43:82: note: Function 'readPagePacketExtraScratch' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbscr.c:461:82: note: Function 'readPagePacketExtraScratch' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbscr.c:526:91: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:571:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:581:42: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:593:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:603:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:647:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:657:64: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:668:64: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:675:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:687:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:699:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:711:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:740:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:753:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:765:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:803:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:820:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:832:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:845:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscr.c:967:58: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrcrc.c:243:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrcrc.c:256:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscree.c:55:61: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrex.c:56:32: style:inconclusive: Function 'writeScratchPadEx' argument 1 names different: declaration 'pornum' definition 'portnum'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbscrex.h:36:32: note: Function 'writeScratchPadEx' argument 1 names different: declaration 'pornum' definition 'portnum'. w1retap/src/libusblinux300/mbscrex.c:56:32: note: Function 'writeScratchPadEx' argument 1 names different: declaration 'pornum' definition 'portnum'. w1retap/src/libusblinux300/mbscrex.c:56:61: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrex.c:156:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:512:68: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscrx77.c:517:71: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscrx77.c:594:68: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscrx77.c:599:71: style: Checking if unsigned expression 'raw_buf[0]' is less than zero. [unsignedLessThanZero] w1retap/src/libusblinux300/mbscrx77.c:73:34: style:inconclusive: Function 'writeScratchPadEx77' argument 1 names different: declaration 'pornum' definition 'portnum'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbscrx77.h:35:34: note: Function 'writeScratchPadEx77' argument 1 names different: declaration 'pornum' definition 'portnum'. w1retap/src/libusblinux300/mbscrx77.c:73:34: note: Function 'writeScratchPadEx77' argument 1 names different: declaration 'pornum' definition 'portnum'. w1retap/src/libusblinux300/mbscrx77.c:525:23: style: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/64)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. [knownArgument] w1retap/src/libusblinux300/mbscrx77.c:525:62: note: Calling function 'getStartingAddressScratchEx77' returns 0 w1retap/src/libusblinux300/mbscrx77.c:525:23: note: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/64)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. w1retap/src/libusblinux300/mbscrx77.c:527:23: style: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/32)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. [knownArgument] w1retap/src/libusblinux300/mbscrx77.c:527:62: note: Calling function 'getStartingAddressScratchEx77' returns 0 w1retap/src/libusblinux300/mbscrx77.c:527:23: note: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/32)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. w1retap/src/libusblinux300/mbscrx77.c:607:23: style: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/64)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. [knownArgument] w1retap/src/libusblinux300/mbscrx77.c:607:62: note: Calling function 'getStartingAddressScratchEx77' returns 0 w1retap/src/libusblinux300/mbscrx77.c:607:23: note: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/64)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. w1retap/src/libusblinux300/mbscrx77.c:609:23: style: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/32)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. [knownArgument] w1retap/src/libusblinux300/mbscrx77.c:609:62: note: Calling function 'getStartingAddressScratchEx77' returns 0 w1retap/src/libusblinux300/mbscrx77.c:609:23: note: Argument '(ushort)((getStartingAddressScratchEx77(bank,SNum)/32)+page)' to function setcrc16 is always 0. It does not matter what value 'bank' has. w1retap/src/libusblinux300/mbscrx77.c:73:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:73:76: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:174:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:254:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:645:95: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:707:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:717:46: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:729:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:739:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:757:66: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:767:68: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:778:68: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:788:67: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:800:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:812:61: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:824:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:839:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:852:62: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:864:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:877:58: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:890:66: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:905:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:922:59: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:934:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbscrx77.c:947:63: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbsha.c:60:62: style: Parameter 'writeBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbsha.c:182:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:214:28: style: The if condition is the same as the previous if condition [duplicateCondition] w1retap/src/libusblinux300/mbshaee.c:208:28: note: First condition w1retap/src/libusblinux300/mbshaee.c:214:28: note: Second condition w1retap/src/libusblinux300/mbshaee.c:1521:18: style: Condition 'addr>31' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/mbshaee.c:1519:12: note: Assuming that condition 'addr<32' is not redundant w1retap/src/libusblinux300/mbshaee.c:1521:18: note: Condition 'addr>31' is always true w1retap/src/libusblinux300/mbshaee.c:1340:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/mbshaee.c:1336:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/mbshaee.c:1340:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/mbshaee.c:1344:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/mbshaee.c:1340:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/mbshaee.c:1344:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/mbshaee.c:424:75: style:inconclusive: Function 'readPagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbshaee.h:51:75: note: Function 'readPagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:424:75: note: Function 'readPagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:485:80: style:inconclusive: Function 'readPagePacketExtraSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbshaee.h:52:80: note: Function 'readPagePacketExtraSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:485:80: note: Function 'readPagePacketExtraSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:547:76: style:inconclusive: Function 'writePagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. [funcArgNamesDifferent] w1retap/src/libusblinux300/mbshaee.h:54:76: note: Function 'writePagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:547:76: note: Function 'writePagePacketSHAEE' argument 4 names different: declaration 'str_add' definition 'page'. w1retap/src/libusblinux300/mbshaee.c:166:82: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:547:89: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:593:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:612:40: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:633:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:669:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:679:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:716:60: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:890:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:902:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:914:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:929:50: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:949:56: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:968:51: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:986:52: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1006:60: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1019:53: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1031:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1044:57: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1062:50: style: Parameter 'out_buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1117:49: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1117:80: style: Parameter 'memory' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1627:32: style: Parameter 'new_secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1654:26: style: Parameter 'new_challenge' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1672:31: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/mbshaee.c:1683:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/memutil.c:112:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/memutil.c:760:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/memutil.c:95:9: style: Local variable 'AllSN' shadows outer variable [shadowVariable] w1retap/src/libusblinux300/memutil.c:87:7: note: Shadowed declaration w1retap/src/libusblinux300/memutil.c:95:9: note: Shadow variable w1retap/src/libusblinux300/mweather.c:113:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/mweather.c:155:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/mweather.c:80:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/owcache.c:338:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] w1retap/src/libusblinux300/owcache.c:66:27: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owcache.c:158:62: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owcache.c:232:56: style: Parameter 'page' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owcache.c:315:11: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owcache.c:324:11: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owcache.c:331:9: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owcache.c:338:9: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:1134:32: style: Condition 'Han[i].Name[0]!=0' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/owfile.c:1131:24: note: Assuming that condition 'Han[i].Name[0]==0' is not redundant w1retap/src/libusblinux300/owfile.c:1134:32: note: Condition 'Han[i].Name[0]!=0' is always true w1retap/src/libusblinux300/owfile.c:134:21: style: The comparison 'bytes_written < 0' is always false. [knownConditionTrueFalse] w1retap/src/libusblinux300/owfile.c:72:28: note: 'bytes_written' is assigned value '0' here. w1retap/src/libusblinux300/owfile.c:134:21: note: The comparison 'bytes_written < 0' is always false. w1retap/src/libusblinux300/owfile.c:382:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/owfile.c:1531:69: style: Parameter 'CDBuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2028:55: style: Parameter 'Bmap' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2351:55: style: Parameter 'BM' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2508:51: style: Parameter 'BM' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2597:43: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2616:100: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2616:110: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owfile.c:2622:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/owfile.c:453:5: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:459:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:1438:6: style: Variable 'pg' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:1535:12: style: Variable 'pg' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:2189:12: style: Variable 'maxP' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:2618:14: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:2719:9: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:2906:6: style: Variable 'pg' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owfile.c:2907:8: style: Variable 'spot' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owllu.c:318:12: style: Variable 'rt' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owpgrw.c:256:21: style: Condition '!fllen' is always false [knownConditionTrueFalse] w1retap/src/libusblinux300/owpgrw.c:196:70: style:inconclusive: Function 'Write_Page' argument 4 names different: declaration 'page' definition 'pg'. [funcArgNamesDifferent] w1retap/src/libusblinux300/owfile.h:168:70: note: Function 'Write_Page' argument 4 names different: declaration 'page' definition 'pg'. w1retap/src/libusblinux300/owpgrw.c:196:70: note: Function 'Write_Page' argument 4 names different: declaration 'page' definition 'pg'. w1retap/src/libusblinux300/owpgrw.c:240:69: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owpgrw.c:242:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/owprgm.c:569:36: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:593:43: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:619:44: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:645:40: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:674:41: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:709:41: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:709:68: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:743:44: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:771:44: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owprgm.c:855:67: style: Parameter 'pgbuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owtrnu.c:259:63: style: Parameter 'write_buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/owtrnu.c:437:47: style: Parameter 'write_buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/pressure.c:191:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/pressure.c:267:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/pressure.c:295:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/pressure.c:333:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/pressure.c:467:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/pressure.c:219:52: style: Parameter 'Cmd' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/pressure.c:443:50: style: Parameter 'serno' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/pressure.c:134:10: style: Variable 'I' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/pressure.c:134:22: style: Variable 'res' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/pressure.c:152:10: style: Variable 'I' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/pressure.c:152:22: style: Variable 'res' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ps02.c:130:56: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:231:54: style: Parameter 'passwd' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:289:63: style: Parameter 'passwd' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:347:69: style: Parameter 'newName' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:347:85: style: Parameter 'newPasswd' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:410:61: style: Parameter 'passwd' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps02.c:410:76: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps_check.c:140:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ps_check.c:172:26: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps_check.c:217:51: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps_check.c:185:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/ps_check.c:48:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ps_check.c:56:18: style: Variable 'NumDevices' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ps_check.c:258:15: style: Variable 'tempMT[i]' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ps_check.c:264:15: style: Variable 'tempMT[i]' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/ps_init.c:103:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/ps_init.c:130:26: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps_init.c:175:40: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/ps_init.c:143:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/ps_init.c:48:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/pw77.c:109:58: style:inconclusive: Function 'verifyPassword' argument 3 names different: declaration 'psw' definition 'setpsw'. [funcArgNamesDifferent] w1retap/src/libusblinux300/pw77.h:44:58: note: Function 'verifyPassword' argument 3 names different: declaration 'psw' definition 'setpsw'. w1retap/src/libusblinux300/pw77.c:109:58: note: Function 'verifyPassword' argument 3 names different: declaration 'psw' definition 'setpsw'. w1retap/src/libusblinux300/pw77.c:196:27: style: Parameter 'pw' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:1447:24: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:1523:33: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:1571:31: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:2909:32: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:3009:54: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/rawmem.c:3039:55: style: Parameter 'SNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/setds2409.c:28:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/setds2409.c:10:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha18.c:199:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:196:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:199:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:202:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:199:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:202:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:461:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:457:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:461:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:465:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:461:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:465:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:582:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:579:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:582:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:585:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:582:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:585:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:588:13: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha18.c:585:13: note: lastcrc16 is assigned w1retap/src/libusblinux300/sha18.c:588:13: note: lastcrc16 is overwritten w1retap/src/libusblinux300/sha18.c:180:64: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha18.c:316:51: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha18.c:740:90: style: Parameter 'secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha18.c:798:107: style: Parameter 'bindCode' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha18.c:743:30: style: Variable 'bytes_left' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/sha33.c:555:10: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha33.c:554:5: note: i is assigned w1retap/src/libusblinux300/sha33.c:555:10: note: i is overwritten w1retap/src/libusblinux300/sha33.c:121:64: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:624:90: style: Parameter 'input_secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:686:90: style: Parameter 'bindData' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:686:107: style: Parameter 'bindCode' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:752:26: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:794:21: style: Parameter 'hash' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sha33.c:765:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/sha33.c:626:30: style: Variable 'bytes_left' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/sha_chck.c:100:26: style: Variable 'copr.ds1961Scompatible' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha_chck.c:85:26: note: copr.ds1961Scompatible is assigned w1retap/src/libusblinux300/sha_chck.c:100:26: note: copr.ds1961Scompatible is overwritten w1retap/src/libusblinux300/sha_init.c:150:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/sha_init.c:126:26: style: Variable 'copr.ds1961Scompatible' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/sha_init.c:88:26: note: copr.ds1961Scompatible is assigned w1retap/src/libusblinux300/sha_init.c:126:26: note: copr.ds1961Scompatible is overwritten w1retap/src/libusblinux300/sha_init.c:266:67: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaapp.c:113:40: warning: Logical disjunction always evaluates to true: indata[9] != 0xAA || indata[9] != 0x55. [incorrectLogicOperator] w1retap/src/libusblinux300/shaapp.c:116:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:147:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:233:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:277:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:316:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:354:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:374:11: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] w1retap/src/libusblinux300/shaapp.c:492:21: style: Parameter 'inbuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaapp.c:198:16: style: Variable 'done' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/shacopr.c:178:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/shacopr.c:174:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/shacopr.c:182:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/shacopr.c:261:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shacopr.c:285:28: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:882:7: error: Resource leak: fp [resourceLeak] w1retap/src/libusblinux300/shadbtvm.c:842:40: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:40: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:842:54: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:54: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:842:73: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:73: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:842:93: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:93: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:890:12: warning: If memory allocation fails, then there is a possible null pointer dereference: signSecret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:889:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:889:24: note: Assignment 'signSecret=malloc(signlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:890:12: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:896:12: warning: If memory allocation fails, then there is a possible null pointer dereference: authSecret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:896:12: note: Null pointer dereference w1retap/src/libusblinux300/shadbtvm.c:83:97: style:inconclusive: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. [funcArgNamesDifferent] w1retap/src/libusblinux300/shaib.h:231:104: note: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. w1retap/src/libusblinux300/shadbtvm.c:83:97: note: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. w1retap/src/libusblinux300/shadbtvm.c:616:68: style: Parameter 'chlg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:697:54: style: Parameter 'secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:697:69: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:697:82: style: Parameter 'scratchpad' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:758:54: style: Parameter 'secret' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:933:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shadbtvm.c:759:30: style: Variable 'bytes_left' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/shadebit.c:74:97: style:inconclusive: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. [funcArgNamesDifferent] w1retap/src/libusblinux300/shaib.h:231:104: note: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. w1retap/src/libusblinux300/shadebit.c:74:97: note: Function 'InstallServiceData' argument 5 names different: declaration 'balance' definition 'initialBalance'. w1retap/src/libusblinux300/shademo.c:120:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/shademo.c:48:7: style: Variable 'oflags' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/shaib.c:212:16: style: Redundant initialization for 'hasDevices'. The initialized value is overwritten before it is read. [redundantInitialization] w1retap/src/libusblinux300/shaib.c:200:23: note: hasDevices is initialized w1retap/src/libusblinux300/shaib.c:212:16: note: hasDevices is overwritten w1retap/src/libusblinux300/shaib.c:88:55: style:inconclusive: Function 'GetCoprFromRawData' argument 3 names different: declaration 'len' definition 'length'. [funcArgNamesDifferent] w1retap/src/libusblinux300/shaib.h:213:62: note: Function 'GetCoprFromRawData' argument 3 names different: declaration 'len' definition 'length'. w1retap/src/libusblinux300/shaib.c:88:55: note: Function 'GetCoprFromRawData' argument 3 names different: declaration 'len' definition 'length'. w1retap/src/libusblinux300/shaib.c:195:57: style:inconclusive: Function 'FindNewSHA' argument 3 names different: declaration 'forceFirst' definition 'resetList'. [funcArgNamesDifferent] w1retap/src/libusblinux300/shaib.h:210:64: note: Function 'FindNewSHA' argument 3 names different: declaration 'forceFirst' definition 'resetList'. w1retap/src/libusblinux300/shaib.c:195:57: note: Function 'FindNewSHA' argument 3 names different: declaration 'forceFirst' definition 'resetList'. w1retap/src/libusblinux300/shaib.c:88:46: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaib.c:373:43: style: Parameter 'chlg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaib.c:415:66: style: Parameter 'chlg' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaib.c:550:23: style: Parameter 'byteArray' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/shaib.c:67:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/sharov.c:76:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/sharov.c:107:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sht11_humid.c:66:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/sht11_humid.c:35:36: style: Parameter 'blk' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/sht11_humid.c:76:9: style: Variable 'c' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swt12.c:66:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:61:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:66:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:73:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:66:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:73:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:73:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:69:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:73:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:87:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:86:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:87:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:88:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:87:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:88:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:89:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:88:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:89:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:135:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:131:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:135:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:137:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:135:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:137:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:148:15: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:137:15: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:148:15: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:158:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/swt12.c:157:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/swt12.c:158:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/swt12.c:73:15: style: Variable 'lastcrc16' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swt12.c:148:15: style: Variable 'lastcrc16' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swt1f.c:61:37: style: Parameter 'SerialNum' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/swtloop.c:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/swtloop.c:48:14: style: Variable 'test' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtloop.c:88:5: style: Variable 'j' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtloop.c:89:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtloop.c:107:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtloop.c:108:12: style: Variable 'done' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtloop.c:184:6: style: Variable 'j' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/swtsngl.c:62:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/tcrc.c:5:21: style: Variable 'blk' can be declared as const array [constVariable] w1retap/src/libusblinux300/temp.c:86:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/temp.c:60:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/temptest.c:57:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/temptest.c:15:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/temptest.c:91:20: note: Assuming allocation function fails w1retap/src/libusblinux300/temptest.c:91:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/temptest.c:92:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/temptest.c:15:5: note: Null pointer dereference w1retap/src/libusblinux300/temptest.c:17:5: warning: If memory allocation fails, then there is a possible null pointer dereference: bin [nullPointerOutOfMemory] w1retap/src/libusblinux300/temptest.c:91:20: note: Assuming allocation function fails w1retap/src/libusblinux300/temptest.c:91:20: note: Assignment 'cident=malloc(32)', assigned value is 0 w1retap/src/libusblinux300/temptest.c:92:29: note: Calling function 'w1_make_serial', 2nd argument 'cident' value is 0 w1retap/src/libusblinux300/temptest.c:17:5: note: Null pointer dereference w1retap/src/libusblinux300/temptest.c:12:34: style: Parameter 'asc' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:721:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/thermo21.c:761:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/thermo21.c:903:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/thermo21.c:878:10: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/thermo21.c:881:10: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] w1retap/src/libusblinux300/thermo21.c:459:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/thermo21.c:456:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/thermo21.c:459:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/thermo21.c:461:17: style: Variable 'lastcrc16' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/thermo21.c:459:17: note: lastcrc16 is assigned w1retap/src/libusblinux300/thermo21.c:461:17: note: lastcrc16 is overwritten w1retap/src/libusblinux300/thermo21.c:1085:19: style: Variable 'log->start_time' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/libusblinux300/thermo21.c:1073:21: note: log->start_time is assigned w1retap/src/libusblinux300/thermo21.c:1085:19: note: log->start_time is overwritten w1retap/src/libusblinux300/thermo21.c:254:73: style: Parameter 'StateScript' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:516:38: style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:616:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/thermo21.c:742:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/thermo21.c:818:43: style: Parameter 'mstatus' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:823:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/thermo21.c:936:35: style: Parameter 'hist' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:963:61: style: Parameter 'mstatus' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1022:38: style: Parameter 'alarm' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1061:44: style: Parameter 'mstatus' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1100:23: style: Parameter 'log' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1133:35: style: Parameter 'mstatus' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1133:61: style: Parameter 'alarm' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1133:79: style: Parameter 'hist' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermo21.c:1223:30: style: Parameter 'td' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/thermodl.c:74:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/thermodl.c:172:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/thermodl.c:61:42: style: Condition 'argc>1' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/thermodl.c:61:13: note: Assuming that condition 'argc<2' is not redundant w1retap/src/libusblinux300/thermodl.c:61:42: note: Condition 'argc>1' is always true w1retap/src/libusblinux300/thermoms.c:74:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/thermoms.c:62:42: style: Condition 'argc>1' is always true [knownConditionTrueFalse] w1retap/src/libusblinux300/thermoms.c:62:13: note: Assuming that condition 'argc<2' is not redundant w1retap/src/libusblinux300/thermoms.c:62:42: note: Condition 'argc>1' is always true w1retap/src/libusblinux300/time04.c:763:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/libusblinux300/time04.c:760:14: style: Variable 'tstruct' can be declared as pointer to const [constVariablePointer] w1retap/src/libusblinux300/time04.c:853:30: style: Parameter 'td' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/time04.c:885:26: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/time04.c:577:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] w1retap/src/libusblinux300/tm_check.c:284:26: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/tm_check.c:297:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/tm_init.c:221:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/tm_init.c:319:26: style: Parameter 'MT' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/tm_init.c:332:59: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] w1retap/src/libusblinux300/tstfind.c:64:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/w1find.c:65:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/libusblinux300/w1find.c:9:21: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/weather.c:592:29: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:592:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:593:29: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:593:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:594:29: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:594:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:595:29: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:595:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] w1retap/src/libusblinux300/weather.c:90:8: style: Variable 'filename' can be declared as const array [constVariable] w1retap/src/libusblinux300/weather.c:644:21: style: Parameter 'inbuf' can be declared as pointer to const [constParameterPointer] w1retap/src/libusblinux300/weather.c:517:46: error: Uninitialized variables: st.Supply, st.Chan_Sel, st.Sour_Sel, st.Polarity [uninitvar] w1retap/src/libusblinux300/weather.c:195:9: style: Variable 'num' is assigned a value that is never used. [unreadVariable] w1retap/src/mysql/w1mysql.c:102:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w1_device_t [valueFlowBailoutIncompleteVar] w1retap/src/mysql/w1mysql.c:218:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/mysql/w1mysql.c:305:36: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] w1retap/src/mysql/w1mysql.c:305:59: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/mysql/w1mysql.c:103:12: warning: If memory allocation fails, then there is a possible null pointer dereference: devs [nullPointerOutOfMemory] w1retap/src/mysql/w1mysql.c:102:18: note: Assuming allocation function fails w1retap/src/mysql/w1mysql.c:102:18: note: Assignment 'devs=malloc(sizeof(w1_device_t)*nr)', assigned value is 0 w1retap/src/mysql/w1mysql.c:103:12: note: Null pointer dereference w1retap/src/mysql/w1mysql.c:60:10: style: Local variable 'conn' shadows outer variable [shadowVariable] w1retap/src/mysql/w1mysql.c:192:15: note: Shadowed declaration w1retap/src/mysql/w1mysql.c:60:10: note: Shadow variable w1retap/src/mysql/w1mysql.c:85:10: style: Local variable 'conn' shadows outer variable [shadowVariable] w1retap/src/mysql/w1mysql.c:192:15: note: Shadowed declaration w1retap/src/mysql/w1mysql.c:85:10: note: Shadow variable w1retap/src/mysql/w1mysql.c:149:11: style: Local variable 'nn' shadows outer variable [shadowVariable] w1retap/src/mysql/w1mysql.c:92:7: note: Shadowed declaration w1retap/src/mysql/w1mysql.c:149:11: note: Shadow variable w1retap/src/mysql/w1mysql.c:38:29: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] w1retap/src/mysql/w1mysql.c:40:14: style: Variable 's1' can be declared as pointer to const [constVariablePointer] w1retap/src/mysql/w1mysql.c:134:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/mysql/w1mysql.c:157:17: style: Variable 'sv' can be declared as pointer to const [constVariablePointer] w1retap/src/mysql/w1mysql.c:304:24: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/mysql/w1mysql.c:89:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/mysql/w1mysql.c:90:10: style: Variable 'nr' is assigned a value that is never used. [unreadVariable] w1retap/src/mysql/w1mysql.c:91:10: style: Variable 'nx' is assigned a value that is never used. [unreadVariable] w1retap/src/mysql/w1mysql.c:92:10: style: Variable 'nn' is assigned a value that is never used. [unreadVariable] w1retap/src/odbc/w1odbc.c:43:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] w1retap/src/odbc/w1odbc.c:181:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_DBC [valueFlowBailoutIncompleteVar] w1retap/src/odbc/w1odbc.c:193:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] w1retap/src/odbc/w1odbc.c:212:29: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/odbc/w1odbc.c:60:12: warning: If memory allocation fails, then there is a possible null pointer dereference: devs [nullPointerOutOfMemory] w1retap/src/odbc/w1odbc.c:59:18: note: Assuming allocation function fails w1retap/src/odbc/w1odbc.c:59:18: note: Assignment 'devs=malloc(sizeof(w1_device_t)*rows)', assigned value is 0 w1retap/src/odbc/w1odbc.c:60:12: note: Null pointer dereference w1retap/src/odbc/w1odbc.c:120:30: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/odbc/w1odbc.c:117:9: note: ret is assigned w1retap/src/odbc/w1odbc.c:120:30: note: ret is overwritten w1retap/src/odbc/w1odbc.c:33:11: style: Local variable 'env' shadows outer variable [shadowVariable] w1retap/src/odbc/w1odbc.c:176:16: note: Shadowed declaration w1retap/src/odbc/w1odbc.c:33:11: note: Shadow variable w1retap/src/odbc/w1odbc.c:34:11: style: Local variable 'dbc' shadows outer variable [shadowVariable] w1retap/src/odbc/w1odbc.c:177:16: note: Shadowed declaration w1retap/src/odbc/w1odbc.c:34:11: note: Shadow variable w1retap/src/odbc/w1odbc.c:35:12: style: Local variable 'stmt' shadows outer variable [shadowVariable] w1retap/src/odbc/w1odbc.c:178:17: note: Shadowed declaration w1retap/src/odbc/w1odbc.c:35:12: note: Shadow variable w1retap/src/odbc/w1odbc.c:74:11: style: Local variable 'i' shadows outer variable [shadowVariable] w1retap/src/odbc/w1odbc.c:50:9: note: Shadowed declaration w1retap/src/odbc/w1odbc.c:74:11: note: Shadow variable w1retap/src/odbc/w1odbc.c:212:24: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/odbc/w1odbc.c:53:12: style: Variable 'nx' is assigned a value that is never used. [unreadVariable] w1retap/src/odbc/w1odbc.c:53:28: style: Variable 'nn' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:48:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_OK [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:90:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:209:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:218:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:245:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_NONFATAL_ERROR [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:305:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] w1retap/src/pgsql/w1pgsql.c:290:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] w1retap/src/pgsql/w1pgsql.c:290:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/pgsql/w1pgsql.c:100:14: warning: If memory allocation fails, then there is a possible null pointer dereference: devs [nullPointerOutOfMemory] w1retap/src/pgsql/w1pgsql.c:99:20: note: Assuming allocation function fails w1retap/src/pgsql/w1pgsql.c:99:20: note: Assignment 'devs=malloc(sizeof(w1_device_t)*nr)', assigned value is 0 w1retap/src/pgsql/w1pgsql.c:100:14: note: Null pointer dereference w1retap/src/pgsql/w1pgsql.c:54:13: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/pgsql/w1pgsql.c:104:15: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] w1retap/src/pgsql/w1pgsql.c:125:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/pgsql/w1pgsql.c:144:19: style: Variable 'sv' can be declared as pointer to const [constVariablePointer] w1retap/src/pgsql/w1pgsql.c:191:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] w1retap/src/pgsql/w1pgsql.c:289:18: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/pgsql/w1pgsql.c:84:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:94:14: style: Variable 'nx' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:95:14: style: Variable 'nn' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:310:17: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:312:17: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/pgsql/w1pgsql.c:321:19: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/sqlite/w1sqlite.c:94:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w1_device_t [valueFlowBailoutIncompleteVar] w1retap/src/sqlite/w1sqlite.c:272:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] w1retap/src/sqlite/w1sqlite.c:336:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_STATIC [valueFlowBailoutIncompleteVar] w1retap/src/sqlite/w1sqlite.c:262:28: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] w1retap/src/sqlite/w1sqlite.c:262:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/sqlite/w1sqlite.c:328:7: style: Obsolete function 'sqlite3_prepare' called. It is recommended to use 'sqlite3_prepare_v2' instead. [prohibitedsqlite3_prepareCalled] w1retap/src/sqlite/w1sqlite.c:334:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/sqlite/w1sqlite.c:159:17: style: Condition 'sv' is always true [knownConditionTrueFalse] w1retap/src/sqlite/w1sqlite.c:168:17: style: Condition 'sv' is always true [knownConditionTrueFalse] w1retap/src/sqlite/w1sqlite.c:177:17: style: Condition 'sv' is always true [knownConditionTrueFalse] w1retap/src/sqlite/w1sqlite.c:95:14: warning: If memory allocation fails, then there is a possible null pointer dereference: devs [nullPointerOutOfMemory] w1retap/src/sqlite/w1sqlite.c:94:20: note: Assuming allocation function fails w1retap/src/sqlite/w1sqlite.c:94:20: note: Assignment 'devs=malloc(sizeof(w1_device_t)*nr)', assigned value is 0 w1retap/src/sqlite/w1sqlite.c:95:14: note: Null pointer dereference w1retap/src/sqlite/w1sqlite.c:281:15: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/sqlite/w1sqlite.c:277:17: note: n is assigned w1retap/src/sqlite/w1sqlite.c:281:15: note: n is overwritten w1retap/src/sqlite/w1sqlite.c:281:15: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] w1retap/src/sqlite/w1sqlite.c:279:17: note: n is assigned w1retap/src/sqlite/w1sqlite.c:281:15: note: n is overwritten w1retap/src/sqlite/w1sqlite.c:80:12: style: Local variable 'db' shadows outer variable [shadowVariable] w1retap/src/sqlite/w1sqlite.c:207:17: note: Shadowed declaration w1retap/src/sqlite/w1sqlite.c:80:12: note: Shadow variable w1retap/src/sqlite/w1sqlite.c:34:33: style: Parameter 'dbname' can be declared as pointer to const [constParameterPointer] w1retap/src/sqlite/w1sqlite.c:121:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/sqlite/w1sqlite.c:239:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/sqlite/w1sqlite.c:250:9: style: Variable 'jstr' can be declared as pointer to const [constVariablePointer] w1retap/src/sqlite/w1sqlite.c:261:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/sqlite/w1sqlite.c:320:30: style: Parameter 'w1' can be declared as pointer to const [constParameterPointer] w1retap/src/sqlite/w1sqlite.c:332:18: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/sqlite/w1sqlite.c:49:28: style: Variable 'sres' is assigned a value that is never used. [unreadVariable] w1retap/src/sqlite/w1sqlite.c:82:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] w1retap/src/sqlite/w1sqlite.c:84:10: style: Variable 'nx' is assigned a value that is never used. [unreadVariable] w1retap/src/sqlite/w1sqlite.c:90:14: style: Variable 'nn' is assigned a value that is never used. [unreadVariable] w1retap/src/testrate.c:40:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/testrate.c:39:11: style: Variable 'nc' is assigned a value that is never used. [unreadVariable] w1retap/src/testrate.c:45:1: error: va_list 'va' was opened but not closed by va_end(). [va_end_missing] w1retap/src/w1conf.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1csv.c:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/w1file.c:101:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/w1file.c:66:17: error: Common realloc mistake: 'devs' nulled but not freed upon failure [memleakOnRealloc] w1retap/src/w1file.c:46:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] w1retap/src/w1retap.c:406:23: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] w1retap/src/w1sensors.c:265:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:416:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:481:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:587:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:713:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:758:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:798:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:851:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:924:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:990:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:1109:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/w1sensors.c:956:34: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] w1retap/src/w1sensors.c:1201:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] w1retap/src/w1sensors.c:947:7: warning: If memory allocation fails, then there is a possible null pointer dereference: priv [nullPointerOutOfMemory] w1retap/src/w1sensors.c:945:26: note: Assuming allocation function fails w1retap/src/w1sensors.c:945:26: note: Assignment 'w->private=calloc(1,sizeof(struct w1_coupler_private_t))', assigned value is 0 w1retap/src/w1sensors.c:946:12: note: priv is assigned '(struct w1_coupler_private_t*)w->private' here. w1retap/src/w1sensors.c:947:7: note: Null pointer dereference w1retap/src/w1sensors.c:1002:10: warning: If memory allocation fails, then there is a possible null pointer dereference: w->coupler [nullPointerOutOfMemory] w1retap/src/w1sensors.c:1001:44: note: Assuming allocation function fails w1retap/src/w1sensors.c:1001:22: note: Assignment 'w->coupler=(struct w1_coupler_t*)calloc(1,sizeof(struct w1_coupler_t))', assigned value is 0 w1retap/src/w1sensors.c:1002:10: note: Null pointer dereference w1retap/src/w1sensors.c:954:30: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] w1retap/src/w1sensors.c:1019:23: style: Parameter 'a' can be declared as const array [constParameter] w1retap/src/w1sensors.c:1059:16: style: Parameter 'a' can be declared as const array [constParameter] w1retap/src/w1sensors.c:304:15: style: Variable 'val' is assigned a value that is never used. [unreadVariable] w1retap/src/w1sensors.c:571:19: style: Variable 'nv1' is assigned a value that is never used. [unreadVariable] w1retap/src/w1util.c:297:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] w1retap/src/w1util.c:311:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/w1util.c:54:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] w1retap/src/w1util.c:63:32: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] w1retap/src/w1util.c:268:26: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] w1retap/src/w1util.c:268:41: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] w1retap/src/w1util.c:37:16: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] w1retap/src/w1util.c:36:19: note: Assuming allocation function fails w1retap/src/w1util.c:36:19: note: Assignment 'fname=malloc(strlen(p)+strlen(f)+2)', assigned value is 0 w1retap/src/w1util.c:37:16: note: Null pointer dereference w1retap/src/w1util.c:62:7: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] w1retap/src/w1util.c:61:17: note: Assuming allocation function fails w1retap/src/w1util.c:61:17: note: Assignment 'p=calloc(1,sizeof(struct w1_params_t)+j*sizeof(double))', assigned value is 0 w1retap/src/w1util.c:62:7: note: Null pointer dereference w1retap/src/w1util.c:64:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] w1retap/src/w1util.c:61:17: note: Assuming allocation function fails w1retap/src/w1util.c:61:17: note: Assignment 'p=calloc(1,sizeof(struct w1_params_t)+j*sizeof(double))', assigned value is 0 w1retap/src/w1util.c:64:9: note: Null pointer dereference w1retap/src/w1util.c:238:9: style: Local variable 'i' shadows outer variable [shadowVariable] w1retap/src/w1util.c:225:7: note: Shadowed declaration w1retap/src/w1util.c:238:9: note: Shadow variable w1retap/src/w1util.c:34:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] w1retap/src/w1util.c:44:41: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] w1retap/src/w1util.c:49:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] w1retap/src/w1util.c:101:60: style: Parameter 'serno' can be declared as pointer to const [constParameterPointer] w1retap/src/w1util.c:101:73: style: Parameter 'devtype' can be declared as pointer to const [constParameterPointer] w1retap/src/w1util.c:267:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] w1retap/src/w1util.c:307:26: style: Parameter 'logfile' can be declared as pointer to const [constParameterPointer] w1retap/src/w1xml.c:108:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] w1retap/src/wtest.c:114:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] w1retap/src/wtest.c:116:3: warning: Redundant code: Found unused cast of expression 's->valid'. [constStatement] w1retap/src/wtest.c:40:9: style: struct member 'w1_sensor_t::name' is never used. [unusedStructMember] w1retap/src/wtest.c:41:9: style: struct member 'w1_sensor_t::units' is never used. [unusedStructMember] w1retap/src/wtest.c:53:9: style: struct member 'w1_device_t::serial' is never used. [unusedStructMember] w1retap/src/wtest.c:54:9: style: struct member 'w1_device_t::devtype' is never used. [unusedStructMember] w1retap/src/wtest.c:61:7: style: struct member 'w1_devlist::ndll' is never used. [unusedStructMember] w1retap/src/wtest.c:62:7: style: struct member 'w1_devlist::delay' is never used. [unusedStructMember] w1retap/src/wtest.c:63:7: style: struct member 'w1_devlist::portnum' is never used. [unusedStructMember] w1retap/src/wtest.c:64:9: style: struct member 'w1_devlist::iface' is never used. [unusedStructMember] w1retap/src/wtest.c:65:9: style: struct member 'w1_devlist::rcfile' is never used. [unusedStructMember] w1retap/src/wtest.c:68:9: style: struct member 'w1_devlist::verbose' is never used. [unusedStructMember] w1retap/src/wtest.c:69:9: style: struct member 'w1_devlist::daemonise' is never used. [unusedStructMember] w1retap/src/wtest.c:70:9: style: struct member 'w1_devlist::logtmp' is never used. [unusedStructMember] w1retap/src/wtest.c:71:9: style: struct member 'w1_devlist::doread' is never used. [unusedStructMember] diff: head w1retap/src/libusblinux300/jib96.c:883:7: style: Condition 'l_lpResponseAPDU' is always true [knownConditionTrueFalse] head w1retap/src/libusblinux300/shadbtvm.c:842:54: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:54: note: Null pointer dereference head w1retap/src/libusblinux300/shadbtvm.c:842:73: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:73: note: Null pointer dereference head w1retap/src/libusblinux300/shadbtvm.c:842:93: warning: If memory allocation fails, then there is a possible null pointer dereference: secret [nullPointerOutOfMemory] w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assuming allocation function fails w1retap/src/libusblinux300/shadbtvm.c:895:24: note: Assignment 'authSecret=malloc(authlen)', assigned value is 0 w1retap/src/libusblinux300/shadbtvm.c:916:29: note: Calling function 'InstallAuthSecretVM', 2nd argument 'authSecret' value is 0 w1retap/src/libusblinux300/shadbtvm.c:842:93: note: Null pointer dereference head w1retap/src/libusblinux300/weather.c:592:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] head w1retap/src/libusblinux300/weather.c:593:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] head w1retap/src/libusblinux300/weather.c:594:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] head w1retap/src/libusblinux300/weather.c:595:77: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] DONE