From 0ca5590961783291957ef6f57e58f5b3d9806e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Oct 2006 13:27:17 +0000 Subject: [PATCH] gst/gstelement.h: gcc versions prior to gcc 3.3 apparently complain about a NULL printf format string, so don't use G... Original commit message from CVS: * gst/gstelement.h: gcc versions prior to gcc 3.3 apparently complain about a NULL printf format string, so don't use G_GNUC_PRINTF for those versions. --- ChangeLog | 6 ++++++ gst/gstelement.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 150e0ad62c..6e4cca999a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-08 Tim-Philipp Müller + + * gst/gstelement.h: + gcc versions prior to gcc 3.3 apparently complain about a NULL printf + format string, so don't use G_GNUC_PRINTF for those versions. + 2006-10-07 Tim-Philipp Müller * gst/gsttaglist.c: (gst_is_tag_list): diff --git a/gst/gstelement.h b/gst/gstelement.h index ca87fbc12d..879605b67d 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -570,7 +570,8 @@ gboolean gst_element_query (GstElement *element, GstQuery *query); gboolean gst_element_post_message (GstElement * element, GstMessage * message); /* error handling */ -#ifdef GST_USING_PRINTF_EXTENSION +/* gcc versions < 3.3 warn about NULL being passed as format to printf */ +#if (defined(GST_USING_PRINTF_EXTENSION) || !defined(__GNUC__) || (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)) gchar * _gst_element_error_printf (const gchar *format, ...); #else gchar * _gst_element_error_printf (const gchar *format, ...) G_GNUC_PRINTF (1, 2);