From 09b56354ab685eef79ca7f22218b066e9b269207 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 21 Dec 2003 14:11:09 +0000 Subject: if gcc knows that xine_log arguments are printf-style format strings, some additional sanity checks are made CVS patchset: 5932 CVS date: 2003/12/21 14:11:09 --- include/xine.h.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/xine.h.in b/include/xine.h.in index e603cb2b9..fba66fe01 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -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.h.in,v 1.110 2003/12/10 00:54:25 hadess Exp $ + * $Id: xine.h.in,v 1.111 2003/12/21 14:11:09 mroi Exp $ * * public xine-lib (libxine) interface and documentation * @@ -744,8 +744,13 @@ int xine_get_log_section_count(xine_t *self); const char *const *xine_get_log_names(xine_t *self); /* print some log information to section */ +#ifndef __GNUC__ void xine_log (xine_t *self, int buf, const char *format, ...); +#else +void xine_log (xine_t *self, int buf, + const char *format, ...) __attribute__ ((__format__(printf, 3, 4))); +#endif /* get log messages of specified section */ const char *const *xine_get_log (xine_t *self, int buf); -- cgit v1.2.3