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().
This commit is contained in:
parent
f0ded315e4
commit
9a6a2a96dd
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user