[grilo] Ensure grl_metadata_list_key_new() is called with a sentinel



commit 09d50a2c36f4e54e007cdfe5c0b270de6dc2aadb
Author: Guillaume Emont <guijemont igalia com>
Date:   Fri Nov 25 13:22:15 2011 +0100

    Ensure grl_metadata_list_key_new() is called with a sentinel
    
    This change triggers a compilation warning (with gcc) if the sentinel is
    forgotten.

 src/grl-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-util.h b/src/grl-util.h
index 3cefae6..70d77f3 100644
--- a/src/grl-util.h
+++ b/src/grl-util.h
@@ -38,7 +38,7 @@ void grl_paging_translate (guint skip,
                            guint *page_number,
                            guint *internal_offset);
 
-GList *grl_list_from_va (gpointer p, ...);
+GList *grl_list_from_va (gpointer p, ...) G_GNUC_NULL_TERMINATED;
 
 GDateTime * grl_date_time_from_iso8601 (const gchar *date);
 



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