diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-12-21 14:11:09 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-12-21 14:11:09 +0000 |
commit | 09b56354ab685eef79ca7f22218b066e9b269207 (patch) | |
tree | 1ce55dfbb0417126527e8364480434ea3eaad16e | |
parent | 71041fb322ca6ef428ec68c23ae058bc39384450 (diff) | |
download | xine-lib-09b56354ab685eef79ca7f22218b066e9b269207.tar.gz xine-lib-09b56354ab685eef79ca7f22218b066e9b269207.tar.bz2 |
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
-rw-r--r-- | include/xine.h.in | 7 |
1 files changed, 6 insertions, 1 deletions
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 <buf> 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); |