mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Fixes for some compiler warnings
This commit is contained in:
parent
5f0afa5218
commit
c3dc03997c
@ -8316,6 +8316,8 @@ clutter_actor_allocate_available_size (ClutterActor *self,
|
||||
|
||||
priv = self->priv;
|
||||
|
||||
width = height = 0.0;
|
||||
|
||||
switch (priv->request_mode)
|
||||
{
|
||||
case CLUTTER_REQUEST_HEIGHT_FOR_WIDTH:
|
||||
|
@ -1951,6 +1951,7 @@ clutter_texture_set_filter_quality (ClutterTexture *texture,
|
||||
{
|
||||
gint min_filter, mag_filter;
|
||||
|
||||
min_filter = mag_filter = COGL_MATERIAL_FILTER_LINEAR;
|
||||
clutter_texture_quality_to_filters (filter_quality,
|
||||
&min_filter,
|
||||
&mag_filter);
|
||||
|
@ -487,8 +487,8 @@ clutter_unit_type_name (ClutterUnitType unit_type)
|
||||
gchar *
|
||||
clutter_units_to_string (const ClutterUnits *units)
|
||||
{
|
||||
const gchar *unit_name;
|
||||
gchar *fmt;
|
||||
const gchar *unit_name = NULL;
|
||||
gchar *fmt = NULL;
|
||||
|
||||
g_return_val_if_fail (units != NULL, NULL);
|
||||
|
||||
@ -513,6 +513,10 @@ clutter_units_to_string (const ClutterUnits *units)
|
||||
unit_name = "px";
|
||||
fmt = g_strdup_printf ("%d", (int) units->value);
|
||||
break;
|
||||
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
|
||||
return g_strconcat (fmt, " ", unit_name, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user