[Spice-devel] [PATCH spice-gtk 2/3] tests: Add missing static statement
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Sep 27 14:45:43 UTC 2018
On Thu, Sep 27, 2018 at 6:27 PM Eduardo Lima (Etrunko)
<etrunko at redhat.com> wrote:
>
> Fixes the following warnings:
>
> ../tests/usb-acl-helper.c:29:10: warning: no previous prototype for ‘abort_test’ [-Wmissing-prototypes]
> gboolean abort_test(gpointer user_data)
> ^~~~~~~~~~
> ../tests/usb-acl-helper.c:37:10: warning: no previous prototype for ‘cancel_test’ [-Wmissing-prototypes]
> gboolean cancel_test(gpointer user_data)
> ^~~~~~~~~~~
>
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
ack
> ---
> tests/usb-acl-helper.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/usb-acl-helper.c b/tests/usb-acl-helper.c
> index 2b28ade..b24f452 100644
> --- a/tests/usb-acl-helper.c
> +++ b/tests/usb-acl-helper.c
> @@ -26,7 +26,7 @@ typedef struct {
> guint timeout_source;
> } Fixture;
>
> -gboolean abort_test(gpointer user_data)
> +static gboolean abort_test(gpointer user_data)
> {
> Fixture *fixture = user_data;
> g_cancellable_cancel(fixture->cancellable);
> @@ -34,7 +34,7 @@ gboolean abort_test(gpointer user_data)
> return G_SOURCE_REMOVE;
> }
>
> -gboolean cancel_test(gpointer user_data)
> +static gboolean cancel_test(gpointer user_data)
> {
> Fixture *fixture = user_data;
> g_cancellable_cancel(fixture->cancellable);
> --
> 2.17.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
--
Marc-André Lureau
More information about the Spice-devel
mailing list