From fe9a0a6d050ecd9e9c25aa405d7f4e27a7b72c43 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 1 May 2003 15:16:17 +0000 Subject: [PATCH] silence forte warnings Original commit message from CVS: silence forte warnings --- gst/gst.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gst/gst.c b/gst/gst.c index d59dbd09d3..b36ca85be6 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -318,7 +318,7 @@ load_plugin_func (gpointer data, gpointer user_data) } static void -parse_number (const gchar *number, guint32 *val) +parse_number (const gchar *number, gint32 *val) { /* handle either 0xHEX or dec */ if (*(number+1) == 'x') { @@ -574,7 +574,7 @@ static void init_popt_callback (poptContext context, enum poptCallbackReason reason, const struct poptOption *option, const char *arg, void *data) { - gint val = 0; + gint32 val = 0; GLogLevelFlags fatal_mask; if (gst_initialized) @@ -595,16 +595,16 @@ init_popt_callback (poptContext context, enum poptCallbackReason reason, break; case ARG_INFO_MASK: parse_number (arg, &val); - gst_info_set_categories (val); + gst_info_set_categories ((guint32) val); break; case ARG_DEBUG_MASK: parse_number (arg, &val); - gst_debug_set_categories (val); + gst_debug_set_categories ((guint32) val); break; case ARG_MASK: parse_number (arg, &val); - gst_debug_set_categories (val); - gst_info_set_categories (val); + gst_debug_set_categories ((guint32) val); + gst_info_set_categories ((guint32) val); break; case ARG_MASK_HELP: gst_mask_help (); @@ -727,4 +727,3 @@ gst_version (guint *major, guint *minor, guint *micro) *minor = GST_VERSION_MINOR; *micro = GST_VERSION_MICRO; } -