mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
Use G_GNUC_WARN_UNUSED_RESULT on list functions that return the whole
2005-12-09 Alexander Larsson <alexl@redhat.com> * glib/glist.h: * glib/gslist.h: Use G_GNUC_WARN_UNUSED_RESULT on list functions that return the whole list.
This commit is contained in:
parent
52917fc408
commit
dd1878cd75
@ -1,3 +1,10 @@
|
||||
2005-12-09 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* glib/glist.h:
|
||||
* glib/gslist.h:
|
||||
Use G_GNUC_WARN_UNUSED_RESULT on list functions that return
|
||||
the whole list.
|
||||
|
||||
2005-12-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* NEWS: Updates
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-12-09 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* glib/glist.h:
|
||||
* glib/gslist.h:
|
||||
Use G_GNUC_WARN_UNUSED_RESULT on list functions that return
|
||||
the whole list.
|
||||
|
||||
2005-12-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* NEWS: Updates
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-12-09 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* glib/glist.h:
|
||||
* glib/gslist.h:
|
||||
Use G_GNUC_WARN_UNUSED_RESULT on list functions that return
|
||||
the whole list.
|
||||
|
||||
2005-12-08 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* NEWS: Updates
|
||||
|
32
glib/glist.h
32
glib/glist.h
@ -42,39 +42,39 @@ struct _GList
|
||||
|
||||
/* Doubly linked lists
|
||||
*/
|
||||
GList* g_list_alloc (void);
|
||||
GList* g_list_alloc (void) G_GNUC_WARN_UNUSED_RESULT;
|
||||
void g_list_free (GList *list);
|
||||
void g_list_free_1 (GList *list);
|
||||
#define g_list_free1 g_list_free_1
|
||||
GList* g_list_append (GList *list,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_prepend (GList *list,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_insert (GList *list,
|
||||
gpointer data,
|
||||
gint position);
|
||||
gint position) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_insert_sorted (GList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func);
|
||||
GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_insert_sorted_with_data (GList *list,
|
||||
gpointer data,
|
||||
GCompareDataFunc func,
|
||||
gpointer user_data);
|
||||
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_insert_before (GList *list,
|
||||
GList *sibling,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_concat (GList *list1,
|
||||
GList *list2);
|
||||
GList *list2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_remove (GList *list,
|
||||
gconstpointer data);
|
||||
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_remove_all (GList *list,
|
||||
gconstpointer data);
|
||||
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_remove_link (GList *list,
|
||||
GList *llink);
|
||||
GList *llink) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_delete_link (GList *list,
|
||||
GList *link_);
|
||||
GList* g_list_reverse (GList *list);
|
||||
GList* g_list_copy (GList *list);
|
||||
GList *link_) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_reverse (GList *list) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_copy (GList *list) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_nth (GList *list,
|
||||
guint n);
|
||||
GList* g_list_nth_prev (GList *list,
|
||||
@ -95,10 +95,10 @@ void g_list_foreach (GList *list,
|
||||
GFunc func,
|
||||
gpointer user_data);
|
||||
GList* g_list_sort (GList *list,
|
||||
GCompareFunc compare_func);
|
||||
GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GList* g_list_sort_with_data (GList *list,
|
||||
GCompareDataFunc compare_func,
|
||||
gpointer user_data);
|
||||
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
gpointer g_list_nth_data (GList *list,
|
||||
guint n);
|
||||
|
||||
|
@ -41,39 +41,39 @@ struct _GSList
|
||||
|
||||
/* Singly linked lists
|
||||
*/
|
||||
GSList* g_slist_alloc (void);
|
||||
GSList* g_slist_alloc (void) G_GNUC_WARN_UNUSED_RESULT;
|
||||
void g_slist_free (GSList *list);
|
||||
void g_slist_free_1 (GSList *list);
|
||||
#define g_slist_free1 g_slist_free_1
|
||||
GSList* g_slist_append (GSList *list,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_prepend (GSList *list,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_insert (GSList *list,
|
||||
gpointer data,
|
||||
gint position);
|
||||
gint position) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_insert_sorted (GSList *list,
|
||||
gpointer data,
|
||||
GCompareFunc func);
|
||||
GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_insert_sorted_with_data (GSList *list,
|
||||
gpointer data,
|
||||
GCompareDataFunc func,
|
||||
gpointer user_data);
|
||||
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_insert_before (GSList *slist,
|
||||
GSList *sibling,
|
||||
gpointer data);
|
||||
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_concat (GSList *list1,
|
||||
GSList *list2);
|
||||
GSList *list2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_remove (GSList *list,
|
||||
gconstpointer data);
|
||||
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_remove_all (GSList *list,
|
||||
gconstpointer data);
|
||||
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_remove_link (GSList *list,
|
||||
GSList *link_);
|
||||
GSList *link_) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_delete_link (GSList *list,
|
||||
GSList *link_);
|
||||
GSList* g_slist_reverse (GSList *list);
|
||||
GSList* g_slist_copy (GSList *list);
|
||||
GSList *link_) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_reverse (GSList *list) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_copy (GSList *list) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_nth (GSList *list,
|
||||
guint n);
|
||||
GSList* g_slist_find (GSList *list,
|
||||
@ -91,10 +91,10 @@ void g_slist_foreach (GSList *list,
|
||||
GFunc func,
|
||||
gpointer user_data);
|
||||
GSList* g_slist_sort (GSList *list,
|
||||
GCompareFunc compare_func);
|
||||
GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GSList* g_slist_sort_with_data (GSList *list,
|
||||
GCompareDataFunc compare_func,
|
||||
gpointer user_data);
|
||||
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
||||
gpointer g_slist_nth_data (GSList *list,
|
||||
guint n);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user