[gegl/pippin/property-keys] add G_GNUC_NULL_TERMINATED for better warnings



commit 5773ca057e79cf7c03329fbd9ac629a86f0f74c7
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed May 14 19:23:20 2014 +0200

    add G_GNUC_NULL_TERMINATED for better warnings

 gegl/property-types/gegl-paramspecs.h |   41 +++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 15 deletions(-)
---
diff --git a/gegl/property-types/gegl-paramspecs.h b/gegl/property-types/gegl-paramspecs.h
index ea657b9..9e9108e 100644
--- a/gegl/property-types/gegl-paramspecs.h
+++ b/gegl/property-types/gegl-paramspecs.h
@@ -374,21 +374,32 @@ GParamSpec * gegl_param_spec_format (const gchar *name,
                                      const gchar *blurb,
                                      GParamFlags  flags);
 
-
-
-GParamSpec * gegl_param_spec_double_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_int_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_string_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_boolean_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_pointer_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_enum_from_vararg (const char *name, GType enum_type, ...);
-GParamSpec * gegl_param_spec_color_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_seed_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_object_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_format_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_curve_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_path_from_vararg (const char *name, ...);
-GParamSpec * gegl_param_spec_file_path_from_vararg (const char *name, ...);
+GParamSpec * gegl_param_spec_double_from_vararg (const char *name, ...) 
+                                                 G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_int_from_vararg (const char *name, ...)
+                                              G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_string_from_vararg (const char *name, ...)
+                                                 G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_boolean_from_vararg (const char *name, ...)
+                                                  G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_pointer_from_vararg (const char *name, ...)
+                                                  G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_enum_from_vararg (const char *name, GType enum_type, ...)
+                                               G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_color_from_vararg (const char *name, ...)
+                                                G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_seed_from_vararg (const char *name, ...)
+                                               G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_object_from_vararg (const char *name, ...)
+                                                 G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_format_from_vararg (const char *name, ...)
+                                                 G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_curve_from_vararg (const char *name, ...)
+                                                G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_path_from_vararg (const char *name, ...)
+                                               G_GNUC_NULL_TERMINATED;
+GParamSpec * gegl_param_spec_file_path_from_vararg (const char *name, ...)
+                                                    G_GNUC_NULL_TERMINATED;
 
 
 G_END_DECLS


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