[mutter] Annotate functions to improve compiler diagnostics



commit 5801b5518fd89f8b84cd9e0930b1651a0e9ca5ec
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 24 01:18:15 2015 +0200

    Annotate functions to improve compiler diagnostics

 src/core/util.c            |    2 +-
 src/meta/main.h            |    2 +-
 src/wayland/meta-wayland.c |    2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/core/util.c b/src/core/util.c
index 71ff68d..f4e56b9 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -46,7 +46,7 @@
 static void
 meta_topic_real_valist (MetaDebugTopic topic,
                         const char    *format,
-                        va_list        args);
+                        va_list        args) G_GNUC_PRINTF(2, 0);
 #endif
 
 static gint verbose_topics = 0;
diff --git a/src/meta/main.h b/src/meta/main.h
index d79ddcc..1cc8ff0 100644
--- a/src/meta/main.h
+++ b/src/meta/main.h
@@ -49,7 +49,7 @@ typedef enum
 } MetaExitCode;
 
 /* exit immediately */
-void meta_exit (MetaExitCode code);
+void meta_exit (MetaExitCode code) G_GNUC_NORETURN;
 
 /* g_main_loop_quit() then fall out of main() */
 void meta_quit (MetaExitCode code);
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 65e05f6..ee58751 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -272,6 +272,8 @@ set_gnome_env (const char *name,
     }
 }
 
+static void meta_wayland_log_func (const char *, va_list) G_GNUC_PRINTF (1, 0);
+
 static void
 meta_wayland_log_func (const char *fmt,
                        va_list     arg)


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