display_server_wayland.cpp has unreachable code #99392
Open
Description
opened on Nov 18, 2024
Tested versions
4.3 src Linux
System information
Linux
Issue description
File:
godot/platform/linuxbsd/wayland/display_server_wayland.cpp
Lines 374 to 382 in fd4c29a
Code:
Point2i DisplayServerWayland::mouse_get_position() const {
MutexLock mutex_lock(wayland_thread.mutex);
// We can't properly implement this method by design.
// This is the best we can do unfortunately.
return Input::get_singleton()->get_mouse_position();
return Point2i(); // <- unreachable
}
Steps to reproduce
see above
Minimal reproduction project (MRP)
see above
Edit by the production team: added syntax highlighting and added the link to the file.
Activity