2026-05-04 23:07 ftp://ftp.de.debian.org/debian/pool/main/s/scrcpy/scrcpy_1.17.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --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-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 100 100 elapsed-time: 1.0 0.9 head-timing-info: old-timing-info: head results: scrcpy-1.17/app/src/cli.c:16:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:320:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:339:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:514:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:549:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:579:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:625:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/cli.c:726:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/command.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/command.c:90:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/command.c:218:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/control_msg.c:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/lock.h:15:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/lock.h:28:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/lock.h:41:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/lock.h:54:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/lock.h:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/controller.c:95:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/controller.c:104:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/controller.c:61:32: style: Parameter 'controller' can be declared as pointer to const [constParameterPointer] scrcpy-1.17/app/src/compat.h:10:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [syntaxError] scrcpy-1.17/app/src/device.c:11:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/device_msg.c:26:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/event_converter.c:39:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_LSHIFT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/event_converter.c:101:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_NUM [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/event_converter.c:162:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_LMASK [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:36:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:89:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:161:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:180:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/file_handler.c:127:13: error: Uninitialized struct member: req.action [uninitStructMember] scrcpy-1.17/app/src/file_handler.c:138:13: error: Uninitialized struct member: req.action [uninitStructMember] scrcpy-1.17/app/src/fps_counter.c:40:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable memory_order_acquire [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/fps_counter.c:45:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable memory_order_release [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/fps_counter.c:54:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/fps_counter.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:20:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_LCTRL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:43:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KMOD_CTRL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:92:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:157:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:167:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:177:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:213:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:223:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:237:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:261:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:297:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:322:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:368:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:549:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TOUCH_MOUSEID [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:602:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:621:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MOUSEBUTTONDOWN [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:633:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TOUCH_MOUSEID [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:733:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/input_manager.c:554:9: style: Condition '!convert_mouse_motion(event,im->screen,&msg)' is always false [knownConditionTrueFalse] scrcpy-1.17/app/src/input_manager.c:554:30: note: Calling function 'convert_mouse_motion' returns 1 scrcpy-1.17/app/src/input_manager.c:554:9: note: Condition '!convert_mouse_motion(event,im->screen,&msg)' is always false scrcpy-1.17/app/src/input_manager.c:731:28: style: Condition 'convert_mouse_wheel(event,im->screen,&msg)' is always true [knownConditionTrueFalse] scrcpy-1.17/app/src/input_manager.c:731:28: note: Calling function 'convert_mouse_wheel' returns 1 scrcpy-1.17/app/src/input_manager.c:731:28: note: Condition 'convert_mouse_wheel(event,im->screen,&msg)' is always true scrcpy-1.17/app/src/input_manager.c:654:23: style: Variable 'r' can be declared as pointer to const [constVariablePointer] scrcpy-1.17/app/src/opengl.c:21:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VERSION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/opengl.c:43:46: style: Parameter 'gl' can be declared as pointer to const [constParameterPointer] scrcpy-1.17/app/src/receiver.c:33:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/receiver.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/receiver.c:103:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/receiver.c:70:22: style: Variable 'receiver' can be declared as pointer to const [constVariablePointer] scrcpy-1.17/app/src/server.c:48:5: error: There is an unknown macro here somewhere. Configuration is required. If PREFIX is a macro then please configure it. [unknownMacro] scrcpy-1.17/app/src/sys/unix/command.c:53:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/sys/unix/command.c:71:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROCESS_ERROR_GENERIC [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/sys/unix/command.c:41:16: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] scrcpy-1.17/app/src/sys/win/command.c:33:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROCESS_ERROR_GENERIC [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/sys/win/command.c:65:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/sys/win/command.c:83:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/tiny_xpm.c:82:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_LOG_CATEGORY_APPLICATION [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/net.c:32:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/net.c:60:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/net.c:93:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_WAITALL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/str_util.c:71:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/str_util.c:89:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/src/util/str_util.c:119:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_cli.c:10:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCRCPY_OPTIONS_DEFAULT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_cli.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCRCPY_OPTIONS_DEFAULT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_cli.c:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCRCPY_OPTIONS_DEFAULT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_cli.c:104:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCRCPY_OPTIONS_DEFAULT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_cli.c:133:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SC_MOD_LCTRL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:8:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_INJECT_KEYCODE [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:33:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_INJECT_TEXT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:53:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_INJECT_TEXT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_INJECT_TOUCH_EVENT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:113:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_INJECT_SCROLL_EVENT [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_BACK_OR_SCREEN_ON [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_EXPAND_NOTIFICATION_PANEL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:176:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_COLLAPSE_NOTIFICATION_PANEL [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:191:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_GET_CLIPBOARD [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:206:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_SET_CLIPBOARD [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:228:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_SET_SCREEN_POWER_MODE [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_control_msg_serialize.c:247:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_MSG_TYPE_ROTATE_DEVICE [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_device_msg_deserialize.c:10:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEVICE_MSG_TYPE_CLIPBOARD [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_device_msg_deserialize.c:27:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEVICE_MSG_MAX_SIZE [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_queue.c:11:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable my_queue [valueFlowBailoutIncompleteVar] scrcpy-1.17/app/tests/test_queue.c:7:17: style: struct member 'foo::next' is never used. [unusedStructMember] diff: DONE