From: Victor Toso <me@xxxxxxxxxxxxxx> Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx> --- src/vdagent/x11-randr.c | 4 ++-- src/vdagent/x11.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vdagent/x11-randr.c b/src/vdagent/x11-randr.c index d000e28..924f5ec 100644 --- a/src/vdagent/x11-randr.c +++ b/src/vdagent/x11-randr.c @@ -528,8 +528,8 @@ void vdagent_x11_randr_handle_root_size_change(struct vdagent_x11 *x11, } } -int vdagent_x11_randr_handle_event(struct vdagent_x11 *x11, - XEvent event) +/* coverity[pass_by_value] */ +int vdagent_x11_randr_handle_event(struct vdagent_x11 *x11, XEvent event) { int handled = TRUE; diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c index c2515a8..90d08a1 100644 --- a/src/vdagent/x11.c +++ b/src/vdagent/x11.c @@ -494,6 +494,7 @@ static int vdagent_x11_get_clipboard_selection(struct vdagent_x11 *x11, } #endif +/* coverity[pass_by_value] */ static void vdagent_x11_handle_event(struct vdagent_x11 *x11, XEvent event) { int i, handled = 0; -- 2.21.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel