utils: Fix uninitialized variable compiler warnings
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Apr 2011 07:20:28 +0000 (09:20 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Apr 2011 07:20:28 +0000 (09:20 +0200)
tests/check/gst/gstutils.c

index 466c70a..22c3091 100644 (file)
@@ -880,6 +880,9 @@ _gmp_test_scale (gsl_rng * rng)
       bygst = gst_util_uint64_scale (val, a, b);
       func = "gst_util_uint64_scale";
       break;
+    default:
+      g_assert_not_reached ();
+      break;
   }
   fail_unless (bygst == bygmp,
       "error: %s(): %" G_GUINT64_FORMAT " * %" G_GUINT64_FORMAT " / %"
@@ -911,6 +914,9 @@ _gmp_test_scale_int (gsl_rng * rng)
       bygst = gst_util_uint64_scale_int (val, a, b);
       func = "gst_util_uint64_scale_int";
       break;
+    default:
+      g_assert_not_reached ();
+      break;
   }
   fail_unless (bygst == bygmp,
       "error: %s(): %" G_GUINT64_FORMAT " * %d / %d = %" G_GUINT64_FORMAT