2026-05-06 01:55 ftp://ftp.de.debian.org/debian/pool/main/a/alsa-oss/alsa-oss_1.1.8.orig.tar.bz2 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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 152 152 elapsed-time: 1.3 1.1 head-timing-info: old-timing-info: head results: alsa-oss-1.1.8/alsa/alsa-oss.c:159:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:190:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:202:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:208:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:216:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:222:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:256:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:278:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:312:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:313:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:329:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:430:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:443:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:491:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:510:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:639:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/stdioemu.c:89:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:814:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_OPEN_MAX [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/alsa-oss.c:430:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/alsa-oss.c:206:56: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'bad_read' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/alsa-oss.c:239:11: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/alsa-oss.c:206:56: note: Parameter 'buf' can be declared as pointer to const alsa-oss-1.1.8/alsa/alsa-oss.c:212:29: style: Parameter 'addr' can be declared as pointer to const. However it seems that 'bad_mmap' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/alsa-oss.c:242:11: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/alsa-oss.c:212:29: note: Parameter 'addr' can be declared as pointer to const alsa-oss-1.1.8/alsa/alsa-oss.c:220:29: style: Parameter 'addr' can be declared as pointer to const. However it seems that 'bad_munmap' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/alsa-oss.c:243:13: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/alsa-oss.c:220:29: note: Parameter 'addr' can be declared as pointer to const alsa-oss-1.1.8/alsa/alsa-oss.c:323:9: style: Variable 'xfd' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/alsa-oss.c:427:31: style: Parameter 'pfds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/alsa-oss.c:439:36: style: Parameter 'rfds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/alsa-oss.c:439:50: style: Parameter 'wfds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/alsa-oss.c:439:64: style: Parameter 'efds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/alsa-oss.c:440:20: style: Parameter 'timeout' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/alsa-oss.c:811:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/stdioemu.c:47:20: style: Variable 'fdc' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/stdioemu.c:53:20: style: Variable 'fdc' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/stdioemu.c:57:28: style: Parameter 'cookie' can be declared as pointer to const. However it seems that 'fdc_seek' is a callback function, if 'cookie' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/stdioemu.c:74:53: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/stdioemu.c:57:28: note: Parameter 'cookie' can be declared as pointer to const alsa-oss-1.1.8/alsa/stdioemu.c:58:17: style: Parameter 'position' can be declared as pointer to const. However it seems that 'fdc_seek' is a callback function, if 'position' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/stdioemu.c:74:53: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/stdioemu.c:58:17: note: Parameter 'position' can be declared as pointer to const alsa-oss-1.1.8/alsa/stdioemu.c:66:20: style: Variable 'fdc' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/mixer.c:92:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_NRDEVICES [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:138:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:153:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_CTL_EVENT_MASK_REMOVE [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_CTL_EVENT_MASK_ADD [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:195:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:264:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_NRDEVICES [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:291:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:574:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/mixer.c:427:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/mixer.c:477:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/mixer.c:281:47: style:inconclusive: Function 'lib_oss_mixer_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:63:58: note: Function 'lib_oss_mixer_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. alsa-oss-1.1.8/alsa/mixer.c:281:47: note: Function 'lib_oss_mixer_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. alsa-oss-1.1.8/alsa/mixer.c:553:36: style:inconclusive: Function 'lib_oss_mixer_open' argument 1 names different: declaration 'pathname' definition 'file'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:61:43: note: Function 'lib_oss_mixer_open' argument 1 names different: declaration 'pathname' definition 'file'. alsa-oss-1.1.8/alsa/mixer.c:553:36: note: Function 'lib_oss_mixer_open' argument 1 names different: declaration 'pathname' definition 'file'. alsa-oss-1.1.8/alsa/mixer.c:553:46: style:inconclusive: Function 'lib_oss_mixer_open' argument 2 names different: declaration 'flags' definition 'oflag'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:61:57: note: Function 'lib_oss_mixer_open' argument 2 names different: declaration 'flags' definition 'oflag'. alsa-oss-1.1.8/alsa/mixer.c:553:46: note: Function 'lib_oss_mixer_open' argument 2 names different: declaration 'flags' definition 'oflag'. alsa-oss-1.1.8/alsa/mixer.c:92:4: style: Variable 'id' can be declared as const array [constVariable] alsa-oss-1.1.8/alsa/mixer.c:191:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/pcm.c:176:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_FORMAT_MU_LAW [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:193:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AFMT_MU_LAW [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:244:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_ACCESS_MMAP_INTERLEAVED [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:437:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:480:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:505:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AFMT_MU_LAW [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:627:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_STREAM_CAPTURE [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:639:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:655:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:703:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:843:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1373:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1398:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1454:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1497:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1557:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1612:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1636:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1673:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:1743:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/alsa/pcm.c:315:11: warning: Identical condition 'err<0', second condition is always false [identicalConditionAfterEarlyExit] alsa-oss-1.1.8/alsa/pcm.c:309:11: note: If condition 'err<0' is true, the function will return/exit alsa-oss-1.1.8/alsa/pcm.c:315:11: note: Testing identical condition 'err<0' alsa-oss-1.1.8/alsa/pcm.c:911:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/pcm.c:920:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/pcm.c:928:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/pcm.c:938:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/alsa/pcm.c:1249:9: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] alsa-oss-1.1.8/alsa/pcm.c:1247:10: note: state is assigned alsa-oss-1.1.8/alsa/pcm.c:1249:9: note: state is overwritten alsa-oss-1.1.8/alsa/pcm.c:646:59: style:inconclusive: Function 'lib_oss_pcm_write' argument 3 names different: declaration 'count' definition 'n'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:51:66: note: Function 'lib_oss_pcm_write' argument 3 names different: declaration 'count' definition 'n'. alsa-oss-1.1.8/alsa/pcm.c:646:59: note: Function 'lib_oss_pcm_write' argument 3 names different: declaration 'count' definition 'n'. alsa-oss-1.1.8/alsa/pcm.c:694:52: style:inconclusive: Function 'lib_oss_pcm_read' argument 3 names different: declaration 'count' definition 'n'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:50:59: note: Function 'lib_oss_pcm_read' argument 3 names different: declaration 'count' definition 'n'. alsa-oss-1.1.8/alsa/pcm.c:694:52: note: Function 'lib_oss_pcm_read' argument 3 names different: declaration 'count' definition 'n'. alsa-oss-1.1.8/alsa/pcm.c:833:45: style:inconclusive: Function 'lib_oss_pcm_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:54:56: note: Function 'lib_oss_pcm_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. alsa-oss-1.1.8/alsa/pcm.c:833:45: note: Function 'lib_oss_pcm_ioctl' argument 2 names different: declaration 'request' definition 'cmd'. alsa-oss-1.1.8/alsa/pcm.c:1390:36: style:inconclusive: Function 'lib_oss_pcm_mmap' argument 1 names different: declaration 'start' definition 'ATTRIBUTE_UNUSED'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:52:38: note: Function 'lib_oss_pcm_mmap' argument 1 names different: declaration 'start' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:36: note: Function 'lib_oss_pcm_mmap' argument 1 names different: declaration 'start' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:65: style:inconclusive: Function 'lib_oss_pcm_mmap' argument 2 names different: declaration 'length' definition 'ATTRIBUTE_UNUSED'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:52:52: note: Function 'lib_oss_pcm_mmap' argument 2 names different: declaration 'length' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:65: note: Function 'lib_oss_pcm_mmap' argument 2 names different: declaration 'length' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:103: style:inconclusive: Function 'lib_oss_pcm_mmap' argument 4 names different: declaration 'flags' definition 'ATTRIBUTE_UNUSED'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:52:74: note: Function 'lib_oss_pcm_mmap' argument 4 names different: declaration 'flags' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:103: note: Function 'lib_oss_pcm_mmap' argument 4 names different: declaration 'flags' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:142: style:inconclusive: Function 'lib_oss_pcm_mmap' argument 6 names different: declaration 'offset' definition 'ATTRIBUTE_UNUSED'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:52:95: note: Function 'lib_oss_pcm_mmap' argument 6 names different: declaration 'offset' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1390:142: note: Function 'lib_oss_pcm_mmap' argument 6 names different: declaration 'offset' definition 'ATTRIBUTE_UNUSED'. alsa-oss-1.1.8/alsa/pcm.c:1447:30: style:inconclusive: Function 'lib_oss_pcm_munmap' argument 1 names different: declaration 'start' definition 'addr'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:53:37: note: Function 'lib_oss_pcm_munmap' argument 1 names different: declaration 'start' definition 'addr'. alsa-oss-1.1.8/alsa/pcm.c:1447:30: note: Function 'lib_oss_pcm_munmap' argument 1 names different: declaration 'start' definition 'addr'. alsa-oss-1.1.8/alsa/pcm.c:1447:43: style:inconclusive: Function 'lib_oss_pcm_munmap' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:53:51: note: Function 'lib_oss_pcm_munmap' argument 2 names different: declaration 'length' definition 'len'. alsa-oss-1.1.8/alsa/pcm.c:1447:43: note: Function 'lib_oss_pcm_munmap' argument 2 names different: declaration 'length' definition 'len'. alsa-oss-1.1.8/alsa/pcm.c:1714:34: style:inconclusive: Function 'lib_oss_pcm_open' argument 1 names different: declaration 'pathname' definition 'file'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:47:41: note: Function 'lib_oss_pcm_open' argument 1 names different: declaration 'pathname' definition 'file'. alsa-oss-1.1.8/alsa/pcm.c:1714:34: note: Function 'lib_oss_pcm_open' argument 1 names different: declaration 'pathname' definition 'file'. alsa-oss-1.1.8/alsa/pcm.c:1714:44: style:inconclusive: Function 'lib_oss_pcm_open' argument 2 names different: declaration 'flags' definition 'oflag'. [funcArgNamesDifferent] alsa-oss-1.1.8/alsa/alsa-oss-emul.h:47:55: note: Function 'lib_oss_pcm_open' argument 2 names different: declaration 'flags' definition 'oflag'. alsa-oss-1.1.8/alsa/pcm.c:1714:44: note: Function 'lib_oss_pcm_open' argument 2 names different: declaration 'flags' definition 'oflag'. alsa-oss-1.1.8/alsa/pcm.c:1526:9: style: Local variable 'fd' shadows outer argument [shadowArgument] alsa-oss-1.1.8/alsa/pcm.c:1491:36: note: Shadowed declaration alsa-oss-1.1.8/alsa/pcm.c:1526:9: note: Shadow variable alsa-oss-1.1.8/alsa/pcm.c:1580:9: style: Local variable 'fd' shadows outer argument [shadowArgument] alsa-oss-1.1.8/alsa/pcm.c:1551:35: note: Shadowed declaration alsa-oss-1.1.8/alsa/pcm.c:1580:9: note: Shadow variable alsa-oss-1.1.8/alsa/pcm.c:114:52: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/pcm.c:511:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/alsa/pcm.c:1551:47: style: Parameter 'readfds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/pcm.c:1551:64: style: Parameter 'writefds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/pcm.c:1551:82: style: Parameter 'exceptfds' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/alsa/pcm.c:1243:7: error: Uninitialized variable: state [uninitvar] alsa-oss-1.1.8/alsa/pcm.c:489:13: style: Variable 'streams' is assigned a value that is never used. [unreadVariable] alsa-oss-1.1.8/alsa/pcm.c:945:7: style: Variable 'pcm' is assigned a value that is never used. [unreadVariable] alsa-oss-1.1.8/alsa/stdioemu.c:57:35: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'fdc_seek' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/stdioemu.c:74:53: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/stdioemu.c:57:35: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const alsa-oss-1.1.8/alsa/stdioemu.c:58:26: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'fdc_seek' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/alsa/stdioemu.c:74:53: note: You might need to cast the function pointer here alsa-oss-1.1.8/alsa/stdioemu.c:58:26: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const alsa-oss-1.1.8/oss-redir/oss-redir.c:67:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:81:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:100:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:113:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:120:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:205:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:246:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/oss-redir/oss-redir.c:144:6: style: Condition '!initialized' is always true [knownConditionTrueFalse] alsa-oss-1.1.8/oss-redir/oss-redir.c:95:53: style: Parameter 'readfds' can be declared as pointer to const. However it seems that 'native_pcm_select_result' is a callback function, if 'readfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/oss-redir/oss-redir.c:238:27: note: You might need to cast the function pointer here alsa-oss-1.1.8/oss-redir/oss-redir.c:95:53: note: Parameter 'readfds' can be declared as pointer to const alsa-oss-1.1.8/oss-redir/oss-redir.c:95:70: style: Parameter 'writefds' can be declared as pointer to const. However it seems that 'native_pcm_select_result' is a callback function, if 'writefds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/oss-redir/oss-redir.c:238:27: note: You might need to cast the function pointer here alsa-oss-1.1.8/oss-redir/oss-redir.c:95:70: note: Parameter 'writefds' can be declared as pointer to const alsa-oss-1.1.8/oss-redir/oss-redir.c:95:88: style: Parameter 'exceptfds' can be declared as pointer to const. However it seems that 'native_pcm_select_result' is a callback function, if 'exceptfds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/oss-redir/oss-redir.c:238:27: note: You might need to cast the function pointer here alsa-oss-1.1.8/oss-redir/oss-redir.c:95:88: note: Parameter 'exceptfds' can be declared as pointer to const alsa-oss-1.1.8/oss-redir/oss-redir.c:127:58: style: Parameter 'ufds' can be declared as pointer to const. However it seems that 'native_pcm_poll_result' is a callback function, if 'ufds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] alsa-oss-1.1.8/oss-redir/oss-redir.c:241:25: note: You might need to cast the function pointer here alsa-oss-1.1.8/oss-redir/oss-redir.c:127:58: note: Parameter 'ufds' can be declared as pointer to const alsa-oss-1.1.8/oss-redir/oss-redir.c:218:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] alsa-oss-1.1.8/test/mixctl.h:33:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/mixctl.h:70:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_READ_RECSRC [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/mixctl.h:128:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_READ_RECSRC [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/mixctl.h:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_MIXER_WRITE_RECSRC [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/mixctl.h:142:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOUND_CAP_EXCL_INPUT [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/lmixer.cc:220:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/mixctl.h:66:9: style:inconclusive: Technically the member function 'MixCtl::openOK' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:89:8: style:inconclusive: Technically the member function 'MixCtl::readLeft' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:92:8: style:inconclusive: Technically the member function 'MixCtl::readRight' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:158:8: style:inconclusive: Technically the member function 'MixCtl::getNrDevices' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:161:8: style:inconclusive: Technically the member function 'MixCtl::getCapabilities' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:166:9: style:inconclusive: Technically the member function 'MixCtl::getSupport' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:169:9: style:inconclusive: Technically the member function 'MixCtl::getStereo' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:172:9: style:inconclusive: Technically the member function 'MixCtl::getRecords' can be const. [functionConst] alsa-oss-1.1.8/test/mixctl.h:62:18: warning: Class 'MixCtl' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] alsa-oss-1.1.8/test/mixctl.h:62:18: warning: Class 'MixCtl' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] alsa-oss-1.1.8/test/mixctl.h:30:4: style: Class 'MixCtl' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] alsa-oss-1.1.8/test/mixctl.h:33:9: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] alsa-oss-1.1.8/test/mixctl.h:32:14: warning: If memory allocation fails, then there is a possible null pointer dereference: device [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:31:28: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:31:14: note: Assignment 'device=(char*)malloc(sizeof(char)*(strlen(dname)+1))', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:32:14: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:48:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:48:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:49:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:49:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:50:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:50:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:51:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:51:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:52:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:52:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:53:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mixdevs [nullPointerOutOfMemory] alsa-oss-1.1.8/test/mixctl.h:45:41: note: Assuming allocation function fails alsa-oss-1.1.8/test/mixctl.h:45:18: note: Assignment 'mixdevs=(struct MixDev*)malloc(sizeof(struct MixDev)*nrdevices)', assigned value is 0 alsa-oss-1.1.8/test/mixctl.h:53:13: note: Null pointer dereference alsa-oss-1.1.8/test/mixctl.h:31:14: style: C-style pointer casting [cstyleCast] alsa-oss-1.1.8/test/mixctl.h:45:18: style: C-style pointer casting [cstyleCast] alsa-oss-1.1.8/test/lmixer.cc:121:31: style: Parameter 'argv' can be declared as const array [constParameter] alsa-oss-1.1.8/test/mixctl.h:30:17: style: Parameter 'dname' can be declared as pointer to const [constParameterPointer] alsa-oss-1.1.8/test/osstest.c:51:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDCTL_DSP_SETFMT [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:138:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDCTL_DSP_SETTRIGGER [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:163:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:217:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:263:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:334:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] alsa-oss-1.1.8/test/osstest.c:168:6: portability: %i in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/test/osstest.c:172:5: portability: %i in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/test/osstest.c:178:5: portability: %i in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] alsa-oss-1.1.8/test/osstest.c:306:26: style: Parameter 'argv' can be declared as const array [constParameter] alsa-oss-1.1.8/test/osstest.c:310:23: style: Variable 'long_option' can be declared as const array [constVariable] diff: DONE