2025-05-10 03:37 ftp://ftp.de.debian.org/debian/pool/main/d/dvbstream/dvbstream_0.6+cvs20090621.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 264 261 elapsed-time: 12.8 13.0 head-timing-info: old-timing-info: head results: dvbstream-20090621.orig/dumprtp.c:44:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dumprtp.c:60:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dumprtp.c:44:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/remux.c:209:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:488:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:607:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:735:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:804:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:849:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:1100:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:1175:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:1887:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:2045:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:2129:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:2220:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:2253:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_NONE [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:2292:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/remux.c:468:12: error: Array 'b[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] dvbstream-20090621.orig/mpegtools/remux.c:514:9: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/remux.c:514:9: portability: %d in format string (no. 2) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/remux.c:617:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/remux.c:881:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/remux.c:782:12: style: The comparison 'diff > 0' is always false. [knownConditionTrueFalse] dvbstream-20090621.orig/mpegtools/remux.c:751:14: note: 'diff' is assigned value '0' here. dvbstream-20090621.orig/mpegtools/remux.c:782:12: note: The comparison 'diff > 0' is always false. dvbstream-20090621.orig/mpegtools/remux.c:13:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/remux.c:119:46: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/remux.c:218:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/remux.c:306:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/remux.c:455:11: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/remux.c:578:11: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/remux.c:792:25: style: Parameter 'rem' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/remux.c:826:10: style: Variable 'mpeg_end' can be declared as const array [constVariable] dvbstream-20090621.orig/mpegtools/remux.c:228:19: style: Variable 'tempref' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:245:10: style: Variable 'hour' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:246:10: style: Variable 'min' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:247:10: style: Variable 'sec' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:779:6: style: Variable 'dts' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:835:12: style: Variable 'pts_d' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:840:17: style: Variable 'vpack_size' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/remux.c:841:17: style: Variable 'apack_size' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:2010:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] dvbstream-20090621.orig/mpegtools/ctools.c:2256:17: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] dvbstream-20090621.orig/mpegtools/ctools.c:1507:19: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1510:19: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1530:42: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1530:55: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1536:50: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1540:50: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1813:18: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:1816:18: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] dvbstream-20090621.orig/mpegtools/ctools.c:584:16: style: Condition 'p->length>0' is always true [knownConditionTrueFalse] dvbstream-20090621.orig/mpegtools/ctools.c:582:16: note: Assuming that condition '!p->length' is not redundant dvbstream-20090621.orig/mpegtools/ctools.c:584:16: note: Condition 'p->length>0' is always true dvbstream-20090621.orig/mpegtools/ringbuffy.c:28:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/ctools.c:135:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] dvbstream-20090621.orig/mpegtools/ctools.c:281:21: note: Assuming allocation function fails dvbstream-20090621.orig/mpegtools/ctools.c:281:8: note: Assignment 'buf=(u8*)malloc(l)', assigned value is 0 dvbstream-20090621.orig/mpegtools/ctools.c:282:22: note: Calling function 'cwrite_pes', 1st argument 'buf' value is 0 dvbstream-20090621.orig/mpegtools/ctools.c:129:13: note: Assuming condition is false dvbstream-20090621.orig/mpegtools/ctools.c:135:9: note: Null pointer dereference dvbstream-20090621.orig/mpegtools/ctools.c:137:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] dvbstream-20090621.orig/mpegtools/ctools.c:281:21: note: Assuming allocation function fails dvbstream-20090621.orig/mpegtools/ctools.c:281:8: note: Assignment 'buf=(u8*)malloc(l)', assigned value is 0 dvbstream-20090621.orig/mpegtools/ctools.c:282:22: note: Calling function 'cwrite_pes', 1st argument 'buf' value is 0 dvbstream-20090621.orig/mpegtools/ctools.c:129:13: note: Assuming condition is false dvbstream-20090621.orig/mpegtools/ctools.c:137:2: note: Null pointer dereference dvbstream-20090621.orig/mpegtools/ctools.c:494:5: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:488:5: note: c is assigned dvbstream-20090621.orig/mpegtools/ctools.c:494:5: note: c is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:725:7: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:724:7: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:725:7: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:739:8: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:737:8: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:739:8: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:753:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:751:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:753:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:758:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:757:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:758:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1055:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1048:8: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1055:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1056:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1055:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1056:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1065:8: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1056:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1065:8: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1065:8: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1061:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1065:8: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1076:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1068:9: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1076:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1072:10: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1071:10: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1072:10: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1073:10: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1072:10: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1073:10: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1074:10: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1073:10: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1074:10: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:1076:9: style: Variable 'neof' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/ctools.c:1074:10: note: neof is assigned dvbstream-20090621.orig/mpegtools/ctools.c:1076:9: note: neof is overwritten dvbstream-20090621.orig/mpegtools/ctools.c:548:10: style: Checking if unsigned expression 'po' is less than zero. [unsignedLessThanZero] dvbstream-20090621.orig/mpegtools/ctools.c:2014:58: style: Unsigned expression 'l=read(fdin,buf,buf_size)' can't be negative so it is unnecessary to test it. [unsignedPositive] dvbstream-20090621.orig/mpegtools/ctools.c:80:10: style: Variable 'll' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:108:30: style: Parameter 'pts' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:331:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:629:35: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:780:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:892:9: style: Variable 'll' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:967:35: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1104:6: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:1222:54: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1222:64: style: Parameter 'filt' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1260:24: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1266:23: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1272:27: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1278:25: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1284:26: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1372:6: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:1410:6: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:1478:40: style: Parameter 'pts' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:1794:11: style: Variable 'pts' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:1923:29: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:2231:18: style: Variable 'hoste' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:2275:22: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ctools.c:2277:38: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/ctools.c:1262:27: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] dvbstream-20090621.orig/mpegtools/ctools.c:1342:18: note: Assuming that condition 'l<32' is not redundant dvbstream-20090621.orig/mpegtools/ctools.c:1343:23: note: Calling function 'filt_is_set', 2nd argument 'l' value is 31 dvbstream-20090621.orig/mpegtools/ctools.c:1262:27: note: Shift dvbstream-20090621.orig/mpegtools/ctools.c:1274:35: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 1374. [shiftTooManyBitsSigned] dvbstream-20090621.orig/mpegtools/ctools.c:1374:25: note: Assuming that condition 'filtn>=32' is not redundant dvbstream-20090621.orig/mpegtools/ctools.c:1379:23: note: Calling function 'pes_is_started', 2nd argument 'filtn' value is 31 dvbstream-20090621.orig/mpegtools/ctools.c:1274:35: note: Shift dvbstream-20090621.orig/mpegtools/ctools.c:1286:31: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 1415. [shiftTooManyBitsSigned] dvbstream-20090621.orig/mpegtools/ctools.c:1415:25: note: Assuming that condition 'filtn>=32' is not redundant dvbstream-20090621.orig/mpegtools/ctools.c:1422:22: note: Calling function 'filt_is_ready', 2nd argument 'filtn' value is 31 dvbstream-20090621.orig/mpegtools/ctools.c:1286:31: note: Shift dvbstream-20090621.orig/mpegtools/ringbuffy.c:47:39: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ringbuffy.c:77:26: style: Parameter 'rbuf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ringbuffy.c:192:26: style: Parameter 'rbuf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/ringbuffy.c:195:7: style: Variable 'rest' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:288:13: style: Variable 'p' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:542:14: style: Variable 'po' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:786:6: style: Variable 'sync' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:858:10: style: Variable 'count' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:860:10: style: Variable 'count' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:1030:13: style: Variable 'q' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:1109:13: style: Variable 'q' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:1187:5: style: Variable 'c' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/ctools.c:1332:7: style: Variable 'flag' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/rtp.c:78:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtp.c:92:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtp.c:171:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtp.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtp.c:222:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtp.c:72:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] dvbstream-20090621.orig/rtp.c:130:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] dvbstream-20090621.orig/rtp.c:141:8: style: Variable 'intP' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/rtp.c:139:8: note: intP is assigned dvbstream-20090621.orig/rtp.c:141:8: note: intP is overwritten dvbstream-20090621.orig/rtp.c:71:41: style: Parameter 'sSockAddr' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/rtp.c:73:8: style: Variable 'cast' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/rtp.c:124:42: style: Parameter 'sSockAddr' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/rtp.c:127:9: style: Variable 'charP' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/rtp.c:176:22: style: Parameter 'szAddr' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/rtp.c:189:42: style: Variable 'sin.sin_family' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/rtp.c:190:38: style: Variable 'sin.sin_port' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/rtpfeed.c:69:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMX_IN_DVR [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtpfeed.c:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/rtpfeed.c:82:26: style: Parameter 'argv' can be declared as const array [constParameter] dvbstream-20090621.orig/rtpfeed.c:99:24: style: Variable 'long_options' can be declared as const array [constVariable] dvbstream-20090621.orig/server.c:23:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] dvbstream-20090621.orig/server.c:45:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/server.c:44:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] dvbstream-20090621.orig/server.c:67:5: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] dvbstream-20090621.orig/server.c:111:23: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] dvbstream-20090621.orig/server.c:99:16: note: Assuming allocation function fails dvbstream-20090621.orig/server.c:99:16: note: Assignment 'fp=fdopen(ns,"r")', assigned value is 0 dvbstream-20090621.orig/server.c:111:23: note: Null pointer dereference dvbstream-20090621.orig/server.c:30:21: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/server.c:32:18: style: Unused variable: i [unusedVariable] dvbstream-20090621.orig/ts_filter.c:25:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/ts_filter.c:36:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/ts_filter.c:43:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/ts_filter.c:51:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/ts_filter.c:63:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/ts_filter.c:63:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/ts_filter.c:37:7: warning: Redundant code: Found unused function. [constStatement] dvbstream-20090621.orig/ts_filter.c:52:9: warning: Redundant code: Found unused function. [constStatement] dvbstream-20090621.orig/mpegtools/transform.c:239:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:257:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:520:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:616:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:728:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:816:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:1214:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:1265:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:1388:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:1460:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:1971:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/mpegtools/transform.c:2084:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FE_HAS_SIGNAL [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:61:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FE_SET_VOLTAGE [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:103:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEC_VOLTAGE_18 [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:131:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FE_SET_FRONTEND [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:214:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FE_GET_INFO [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/tune.c:63:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:68:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:69:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:76:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:118:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:150:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:286:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dvbstream-20090621.orig/tune.c:214:8: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] dvbstream-20090621.orig/tune.c:163:12: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:219:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:233:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:253:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:253:7: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:253:7: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:253:7: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:268:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:268:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/tune.c:156:7: warning: Uninitialized variable: festatus [uninitvar] dvbstream-20090621.orig/tune.c:141:10: note: Assuming condition is false dvbstream-20090621.orig/tune.c:156:7: note: Uninitialized variable: festatus dvbstream-20090621.orig/mpegtools/transform.c:1296:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:1296:3: portability: %d in format string (no. 2) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:1399:4: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:1460:10: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:1464:10: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:1469:10: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/mpegtools/transform.c:825:8: style: Variable 'count' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/transform.c:811:9: note: count is assigned dvbstream-20090621.orig/mpegtools/transform.c:825:8: note: count is overwritten dvbstream-20090621.orig/mpegtools/transform.c:825:8: style: Variable 'count' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/mpegtools/transform.c:820:9: note: count is assigned dvbstream-20090621.orig/mpegtools/transform.c:825:8: note: count is overwritten dvbstream-20090621.orig/mpegtools/transform.c:703:61: style:inconclusive: Function 'ts_to_pes' argument 4 names different: declaration 'pad' definition 'ps'. [funcArgNamesDifferent] dvbstream-20090621.orig/mpegtools/transform.h:174:62: note: Function 'ts_to_pes' argument 4 names different: declaration 'pad' definition 'ps'. dvbstream-20090621.orig/mpegtools/transform.c:703:61: note: Function 'ts_to_pes' argument 4 names different: declaration 'pad' definition 'ps'. dvbstream-20090621.orig/mpegtools/transform.c:1211:58: style:inconclusive: Function 'init_ipack' argument 4 names different: declaration 'pad' definition 'ps'. [funcArgNamesDifferent] dvbstream-20090621.orig/mpegtools/transform.h:214:8: note: Function 'init_ipack' argument 4 names different: declaration 'pad' definition 'ps'. dvbstream-20090621.orig/mpegtools/transform.c:1211:58: note: Function 'init_ipack' argument 4 names different: declaration 'pad' definition 'ps'. dvbstream-20090621.orig/mpegtools/transform.c:1924:22: style:inconclusive: Function 'ts_demux' argument 1 names different: declaration 'fd_in' definition 'fdin'. [funcArgNamesDifferent] dvbstream-20090621.orig/mpegtools/transform.h:221:23: note: Function 'ts_demux' argument 1 names different: declaration 'fd_in' definition 'fdin'. dvbstream-20090621.orig/mpegtools/transform.c:1924:22: note: Function 'ts_demux' argument 1 names different: declaration 'fd_in' definition 'fdin'. dvbstream-20090621.orig/mpegtools/transform.c:2022:10: style: Local variable 'l' shadows outer variable [shadowVariable] dvbstream-20090621.orig/mpegtools/transform.c:1939:11: note: Shadowed declaration dvbstream-20090621.orig/mpegtools/transform.c:2022:10: note: Shadow variable dvbstream-20090621.orig/mpegtools/transform.c:90:33: style: Parameter 'pts' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/transform.c:106:26: style: Parameter 'av_pts' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/transform.c:120:27: style: Parameter 'pid' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/mpegtools/transform.c:175:10: style: Variable 'headr' can be declared as const array [constVariable] dvbstream-20090621.orig/mpegtools/transform.c:391:20: style: Parameter 'p' can be declared as pointer to const. However it seems that 'pes_filt' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/mpegtools/transform.c:418:25: note: You might need to cast the function pointer here dvbstream-20090621.orig/mpegtools/transform.c:391:20: note: Parameter 'p' can be declared as pointer to const dvbstream-20090621.orig/mpegtools/transform.c:624:25: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'write_out' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/mpegtools/transform.c:719:25: note: You might need to cast the function pointer here dvbstream-20090621.orig/mpegtools/transform.c:624:25: note: Parameter 'buf' can be declared as pointer to const dvbstream-20090621.orig/mpegtools/transform.c:624:47: style: Parameter 'p' can be declared as pointer to const. However it seems that 'write_out' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/mpegtools/transform.c:719:25: note: You might need to cast the function pointer here dvbstream-20090621.orig/mpegtools/transform.c:624:47: note: Parameter 'p' can be declared as pointer to const dvbstream-20090621.orig/mpegtools/transform.c:856:18: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:859:10: style: Variable 'headr' can be declared as const array [constVariable] dvbstream-20090621.orig/mpegtools/transform.c:1235:11: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1242:12: style: Variable 'b' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1365:11: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1371:12: style: Variable 'b' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1431:11: style: Variable 'headr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1438:12: style: Variable 'b' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1606:10: style: Variable 'headr' can be declared as const array [constVariable] dvbstream-20090621.orig/mpegtools/transform.c:1642:18: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1907:28: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'write_out_es' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/mpegtools/transform.c:2073:24: note: You might need to cast the function pointer here dvbstream-20090621.orig/mpegtools/transform.c:1907:28: note: Parameter 'buf' can be declared as pointer to const dvbstream-20090621.orig/mpegtools/transform.c:1916:29: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'write_out_pes' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/mpegtools/transform.c:1958:26: note: You might need to cast the function pointer here dvbstream-20090621.orig/mpegtools/transform.c:1916:29: note: Parameter 'buf' can be declared as pointer to const dvbstream-20090621.orig/mpegtools/transform.c:1918:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/mpegtools/transform.c:1564:6: error: Uninitialized struct member: ai.framesize [uninitStructMember] dvbstream-20090621.orig/mpegtools/transform.c:637:17: style: Variable 'off' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/mpegtools/transform.c:669:17: style: Variable 'off' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:108:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:145:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMX_IN_FRONTEND [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:159:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:247:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMX_STOP [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:666:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:792:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:905:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbstream-20090621.orig/dvbstream.c:839:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] dvbstream-20090621.orig/dvbstream.c:331:11: warning: Invalid write() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] dvbstream-20090621.orig/dvbstream.c:241:17: note: Assignment 'ns=-1', assigned value is -1 dvbstream-20090621.orig/dvbstream.c:331:11: note: Invalid argument dvbstream-20090621.orig/dvbstream.c:323:17: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:323:17: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:792:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:1394:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:1413:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:1413:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dvbstream-20090621.orig/dvbstream.c:1039:11: error: Common realloc mistake: 'pids_map' nulled but not freed upon failure [memleakOnRealloc] dvbstream-20090621.orig/dvbstream.c:1266:13: error: Common realloc mistake: 'pids_map' nulled but not freed upon failure [memleakOnRealloc] dvbstream-20090621.orig/dvbstream.c:1403:9: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] dvbstream-20090621.orig/dvbstream.c:1395:8: note: i is assigned dvbstream-20090621.orig/dvbstream.c:1403:9: note: i is overwritten dvbstream-20090621.orig/dvbstream.c:157:7: style: Local variable 'oldflags' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:185:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:157:7: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:375:12: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:375:12: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:533:17: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:533:17: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:556:17: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:556:17: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:680:57: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:680:57: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:768:14: style: Local variable 'len' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:727:69: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:768:14: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:808:7: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:808:7: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:1372:11: style: Local variable 'f' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:890:10: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:1372:11: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:1556:12: style: Local variable 'bytes_read' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:885:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:1556:12: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:1560:16: style: Local variable 'pid' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:177:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:1560:16: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:1560:21: style: Local variable 'i' shadows outer variable [shadowVariable] dvbstream-20090621.orig/dvbstream.c:876:7: note: Shadowed declaration dvbstream-20090621.orig/dvbstream.c:1560:21: note: Shadow variable dvbstream-20090621.orig/dvbstream.c:340:28: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'my_write_out' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbstream-20090621.orig/dvbstream.c:1474:28: note: You might need to cast the function pointer here dvbstream-20090621.orig/dvbstream.c:340:28: note: Parameter 'buf' can be declared as pointer to const dvbstream-20090621.orig/dvbstream.c:568:67: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/dvbstream.c:571:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/dvbstream.c:598:12: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/dvbstream.c:681:12: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/dvbstream.c:728:12: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/dvbstream.c:856:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dvbstream-20090621.orig/dvbstream.c:1023:15: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] dvbstream-20090621.orig/dvbstream.c:1549:9: warning: Uninitialized variable: count [uninitvar] dvbstream-20090621.orig/dvbstream.c:450:7: style: struct member 'Anonymous6::len' is never used. [unusedStructMember] dvbstream-20090621.orig/dvbstream.c:472:7: style: struct member 'Anonymous8::len' is never used. [unusedStructMember] dvbstream-20090621.orig/dvbstream.c:207:21: style: Variable 'freq' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:208:22: style: Variable 'srate' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:276:24: style: Variable 'pestype' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:329:16: style: Variable 'cmd_i' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:330:17: style: Variable 'cmd[0]' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:698:8: style: Variable 'prog' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:758:11: style: Variable 'found' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:763:15: style: Variable 'found' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:771:18: style: Variable 'dlen' is assigned a value that is never used. [unreadVariable] dvbstream-20090621.orig/dvbstream.c:727:69: style: Unused variable: len [unusedVariable] dvbstream-20090621.orig/dvbstream.c:882:7: style: Variable 'count' is not assigned a value. [unassignedVariable] diff: head dvbstream-20090621.orig/mpegtools/ctools.c:1530:55: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head dvbstream-20090621.orig/ts_filter.c:37:7: warning: Redundant code: Found unused function. [constStatement] head dvbstream-20090621.orig/ts_filter.c:52:9: warning: Redundant code: Found unused function. [constStatement] DONE