[gtk/wip/baedert/for-master] clipboard tests: Add noreturn annotations where possible




commit 6b6246f7b4d5e6555ed78472389b5cb7e085740d
Author: Timm Bäder <mail baedert org>
Date:   Sat May 1 17:14:23 2021 +0200

    clipboard tests: Add noreturn annotations where possible
    
    Clang complains when they are missing.

 testsuite/gdk/clipboard-client.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/testsuite/gdk/clipboard-client.c b/testsuite/gdk/clipboard-client.c
index c7ec502111..d9f8ff2f9d 100644
--- a/testsuite/gdk/clipboard-client.c
+++ b/testsuite/gdk/clipboard-client.c
@@ -4,7 +4,8 @@
 #include "wayland/gdkwayland.h"
 #endif
 
-static void
+
+G_GNUC_NORETURN static void
 got_string_cb (GObject      *source,
                GAsyncResult *result,
                gpointer      data)
@@ -28,7 +29,7 @@ got_string_cb (GObject      *source,
   exit (0);
 }
 
-static void
+G_GNUC_NORETURN static void
 got_text_cb (GObject      *source,
              GAsyncResult *result,
              gpointer      data)
@@ -61,7 +62,7 @@ got_text_cb (GObject      *source,
   exit (0);
 }
 
-static void
+G_GNUC_NORETURN static void
 got_texture_cb (GObject      *source,
                 GAsyncResult *result,
                 gpointer      data)
@@ -94,7 +95,7 @@ got_texture_cb (GObject      *source,
   exit (0);
 }
 
-static void
+G_GNUC_NORETURN static void
 got_file (GObject      *source,
           GAsyncResult *result,
           gpointer      data)
@@ -120,7 +121,7 @@ got_file (GObject      *source,
   exit (0);
 }
 
-static void
+G_GNUC_NORETURN static void
 got_files (GObject      *source,
            GAsyncResult *result,
            gpointer      data)
@@ -152,7 +153,7 @@ got_files (GObject      *source,
   exit (0);
 }
 
-static void
+G_GNUC_NORETURN static void
 got_color (GObject      *source,
            GAsyncResult *result,
            gpointer      data)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]