From 95d162791f77b914174129acffc9ce6ca0a474e8 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Fri, 21 Apr 2006 22:46:33 +0000 Subject: Sentinel attributes for certain variadic functions. CVS patchset: 7975 CVS date: 2006/04/21 22:46:33 --- src/xine-engine/info_helper.h | 6 +++++- src/xine-engine/xine_internal.h | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/xine-engine/info_helper.h b/src/xine-engine/info_helper.h index 281411f7a..5cf4b9a00 100644 --- a/src/xine-engine/info_helper.h +++ b/src/xine-engine/info_helper.h @@ -123,7 +123,11 @@ void _x_meta_info_set_generic(xine_stream_t *stream, int info, const char *str, * ... one or more meta info, followed by a NULL pointer * */ -void _x_meta_info_set_multi(xine_stream_t *stream, int info, ...); +void _x_meta_info_set_multi(xine_stream_t *stream, int info, ...) +#ifdef __GNUC__ +__attribute__((sentinel)) +#endif +; /* * set a stream meta info diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index 0fc083569..9ad198143 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_internal.h,v 1.171 2006/01/27 07:46:16 tmattern Exp $ + * $Id: xine_internal.h,v 1.172 2006/04/21 22:46:33 dsalt Exp $ * */ @@ -358,7 +358,11 @@ void _x_handle_stream_end (xine_stream_t *stream, int non_user); /* report message to UI. usually these are async errors */ -int _x_message(xine_stream_t *stream, int type, ...); +int _x_message(xine_stream_t *stream, int type, ...) +#ifdef __GNUC__ +__attribute__((sentinel)) +#endif +; /* flush the message queues */ -- cgit v1.2.3