From: Sebastian Dröge Date: Tue, 6 Mar 2012 11:16:19 +0000 (+0100) Subject: gst: Fix 'comparison of unsigned enum expression >= 0 is always true' compiler warning X-Git-Tag: RELEASE-0.11.3~1^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8cde669b78f120cfe0a7181fd8f5508cbd249fc;p=platform%2Fupstream%2Fgstreamer.git gst: Fix 'comparison of unsigned enum expression >= 0 is always true' compiler warning --- diff --git a/gst/gst.c b/gst/gst.c index ff7f250..8e6c542 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -913,7 +913,7 @@ parse_one_option (gint opt, const gchar * arg, GError ** err) GstDebugLevel tmp = GST_LEVEL_NONE; tmp = (GstDebugLevel) strtol (arg, NULL, 0); - if (tmp >= 0 && tmp < GST_LEVEL_COUNT) { + if (((guint) tmp) < GST_LEVEL_COUNT) { gst_debug_set_default_threshold (tmp); } break;