From 9a6a2a96dd17d3376ab72fc518300be9caf27e6b Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 31 May 2010 21:04:53 +0100 Subject: [PATCH] animator,state: Mark variadic functions that ends with NULL GCC can catch errors when it knows that a variadic function must be ended with NULL. Let's use the glib macro encapsulating the GCC attribute to clutter_animator_set() and clutter_state_set(). --- clutter/clutter-animator.h | 2 +- clutter/clutter-state.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-animator.h b/clutter/clutter-animator.h index 9455357..1f46799 100644 --- a/clutter/clutter-animator.h +++ b/clutter/clutter-animator.h @@ -117,7 +117,7 @@ void clutter_animator_set (ClutterAnimato const gchar *first_property_name, guint first_mode, gdouble first_progress, - ...); + ...) G_GNUC_NULL_TERMINATED; GList * clutter_animator_get_keys (ClutterAnimator *animator, GObject *object, const gchar *property_name, diff --git a/clutter/clutter-state.h b/clutter/clutter-state.h index 771db11..457c3ed 100644 --- a/clutter/clutter-state.h +++ b/clutter/clutter-state.h @@ -116,7 +116,7 @@ void clutter_state_set (ClutterState *state, gpointer first_object, const gchar *first_property_name, gulong first_mode, - ...); + ...) G_GNUC_NULL_TERMINATED; GList * clutter_state_get_states (ClutterState *state); GList * clutter_state_get_keys (ClutterState *state, const gchar *source_state_name, -- 2.7.4