2025-05-07 19:40 ftp://ftp.de.debian.org/debian/pool/main/r/roarplaylistd/roarplaylistd_0.1.9.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 -j1 platform: Linux-6.8.0-59-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: ebc80c0 (2025-05-07 18:59:31 +0200) count: 119 119 elapsed-time: 8.5 8.2 head-timing-info: old-timing-info: head results: rpld-0.1.9/autoqueue.c:133:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/autoqueue.c:184:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/autoqueue.c:185:11: style: Condition 'pl!=NULL' is always true [knownConditionTrueFalse] rpld-0.1.9/backend.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:123:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:155:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:174:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:199:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOSPC [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/backend.c:203:57: style: Parameter 'backend' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/client.c:77:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_DL_PROTO_SIZE [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:131:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOSYS [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:160:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_DL_HANDLE_APPLICATION [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:187:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_RPLD [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:204:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unset_proto [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:227:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:250:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proto [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:401:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:423:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:464:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:478:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:501:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_VIO_SELECT_READ [valueFlowBailoutIncompleteVar] rpld-0.1.9/client.c:520:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_RPLD [valueFlowBailoutIncompleteVar] rpld-0.1.9/ff_vclt.c:87:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] rpld-0.1.9/ff_vclt.c:224:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_keyval [valueFlowBailoutIncompleteVar] rpld-0.1.9/ff_vclt.c:229:23: portability: 'extra_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/ff_vclt.c:237:56: portability: 'extra_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/ff_vclt.c:239:58: portability: 'extra_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/ff_vclt.c:239:90: portability: 'extra_buf+plent->meta.extra.kv_storelen' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/fformat.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/fformat.c:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOENT [valueFlowBailoutIncompleteVar] rpld-0.1.9/fformat.c:146:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOTSUP [valueFlowBailoutIncompleteVar] rpld-0.1.9/fformat.c:31:15: style: struct member 'Anonymous8::ext' is never used. [unusedStructMember] rpld-0.1.9/network.c:48:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/network.c:61:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/network.c:144:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/network.c:191:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:32:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOENT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:104:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_RATE_DEFAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:119:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:183:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_VIO_SELECT_WRITE [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:269:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:311:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_TYPEMM [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:402:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_TYPEMM [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:502:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:722:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_TYPEMM [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:772:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_TYPEMM [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:853:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_SET_FLAG [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:957:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_FLAG_PAUSE [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:1123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_META_MAX_PER_STREAM [valueFlowBailoutIncompleteVar] rpld-0.1.9/playback.c:54:26: style: Condition 'playback_preinit()==-1' is always false [knownConditionTrueFalse] rpld-0.1.9/playback.c:54:23: note: Calling function 'playback_preinit' returns 0 rpld-0.1.9/playback.c:54:26: note: Condition 'playback_preinit()==-1' is always false rpld-0.1.9/playback.c:897:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] rpld-0.1.9/playback.c:904:22: style: Variable 'plq' can be declared as pointer to const [constVariablePointer] rpld-0.1.9/playback.c:1207:22: style: Variable 'plq' can be declared as pointer to const [constVariablePointer] rpld-0.1.9/playlist.c:53:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_RPGMODE_DEFAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:156:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:245:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:268:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:343:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:383:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:430:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:591:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:602:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:694:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:709:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOENT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:739:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOENT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1053:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1070:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1087:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1145:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NOENT [valueFlowBailoutIncompleteVar] rpld-0.1.9/playlist.c:1012:71: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/playlist.c:1028:71: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/playlist.c:1044:72: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/playlist.c:1068:74: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/playlist.c:1122:72: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/playlist.c:1198:81: style: Parameter 'pls' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/plugins/playback-logging/playback-logging.c:208:11: error: There is an unknown macro here somewhere. Configuration is required. If BASENAME is a macro then please configure it. [unknownMacro] rpld-0.1.9/pointer.c:54:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/pointer.c:81:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_FAULT [valueFlowBailoutIncompleteVar] rpld-0.1.9/pointer.c:126:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/pointer.c:141:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/pointer.c:176:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_INVAL [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_mpd.c:138:68: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/proto_simple.c:93:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_ILLSEQ [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:258:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_error [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1303:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1702:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1778:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_ILLSEQ [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1857:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_PROTO_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1891:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_ILLSEQ [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1998:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_ILLSEQ [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple.c:1653:6: portability: %i in format string (no. 2) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/proto_simple.c:1656:6: portability: %i in format string (no. 2) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/proto_simple.c:1863:3: portability: %i in format string (no. 4) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/proto_simple.c:1863:3: portability: %i in format string (no. 5) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/proto_simple.c:1997:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] rpld-0.1.9/proto_simple.c:1550:50: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] rpld-0.1.9/proto_simple.c:1560:33: style: Variable 'ple' can be declared as pointer to const [constVariablePointer] rpld-0.1.9/proto_simple_vio.c:42:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable roar_vio_calls [valueFlowBailoutIncompleteVar] rpld-0.1.9/proto_simple_vio.c:198:64: style: Parameter 'vio' can be declared as pointer to const. However it seems that 'rpld_proto_simple_vio_write' is a callback function, if 'vio' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rpld-0.1.9/proto_simple_vio.c:54:18: note: You might need to cast the function pointer here rpld-0.1.9/proto_simple_vio.c:198:64: note: Parameter 'vio' can be declared as pointer to const rpld-0.1.9/proto_simple_vio.c:138:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/proto_simple_vio.c:177:25: portability: 'bufdata' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/proto_simple_vio.c:177:29: portability: 'bufdata+ret' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rpld-0.1.9/rpld.c:260:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_VIO_DEF_TYPE_NONE [valueFlowBailoutIncompleteVar] rpld-0.1.9/rpld.c:331:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_SOCKET_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] rpld-0.1.9/serverinfo.c:139:30: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] rpld-0.1.9/store.c:84:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] rpld-0.1.9/store.c:221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_ILLSEQ [valueFlowBailoutIncompleteVar] rpld-0.1.9/store.c:430:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_ERROR_NSVERSION [valueFlowBailoutIncompleteVar] rpld-0.1.9/store.c:392:23: style: Condition '__flush_state()==-1' is always false [knownConditionTrueFalse] rpld-0.1.9/store.c:392:20: note: Calling function '__flush_state' returns 0 rpld-0.1.9/store.c:392:23: note: Condition '__flush_state()==-1' is always false rpld-0.1.9/store.c:190:4: portability: %i in format string (no. 2) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/store.c:517:5: portability: %i in format string (no. 2) requires 'int' but the argument type is 'pli_t {aka unsigned int}'. [invalidPrintfArgType_sint] rpld-0.1.9/store.c:365:5: style:inconclusive: Statements following 'continue' will never be executed. [unreachableCode] rpld-0.1.9/yield.c:43:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_DL_APPSCHED_UPDATE [valueFlowBailoutIncompleteVar] rpld-0.1.9/yield.c:48:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ROAR_DL_APPSCHED_TICK [valueFlowBailoutIncompleteVar] diff: DONE