From 9d043ceb42468af2f18b823e7dd5d026ef24b0b1 Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 22 Jul 2019 17:37:18 -0500 Subject: vendor_match() sentinel attribute Signed-off-by: Burt P --- includes/vendor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/vendor.h b/includes/vendor.h index f7d02998..50c23c50 100644 --- a/includes/vendor.h +++ b/includes/vendor.h @@ -45,7 +45,8 @@ typedef struct { void vendor_init(void); void vendor_cleanup(void); -const Vendor *vendor_match(const gchar *id_str, ...); /* end list of strings with NULL */ +const Vendor *vendor_match(const gchar *id_str, ...) /* end list of strings with NULL */ + __attribute__((sentinel)); const gchar *vendor_get_name(const gchar *id_str); const gchar *vendor_get_shortest_name(const gchar *id_str); const gchar *vendor_get_url(const gchar *id_str); -- cgit v1.2.3