Silence some 'variable may be used uninitialized' compiler warnings

when compiling with -DG_DISABLE_ASSERT
This commit is contained in:
Tim-Philipp Müller 2012-08-08 10:19:20 +01:00
parent 17c839c8a1
commit fc37cf5779
2 changed files with 2 additions and 1 deletions

View file

@ -271,6 +271,7 @@ caps_add_channel_configuration (GstCaps * caps,
channel_mask = CHANNEL_MASK_7_1;
break;
default:
channel_mask = 0;
g_assert_not_reached ();
break;
}

View file

@ -1611,7 +1611,7 @@ colorbalance_value_changed (GtkRange * range, PlaybackApp * app)
else if (range == GTK_RANGE (app->saturation_scale))
label = "SATURATION";
else
g_assert_not_reached ();
g_return_if_reached ();
val = gtk_range_get_value (range);