background: Fix build

These warnings weren't properly working on Owen's machine, so they went
unchecked.
This commit is contained in:
Jasper St. Pierre 2014-09-03 11:03:17 -07:00
parent 9d69b2a963
commit d4317ba1e4
2 changed files with 4 additions and 4 deletions

View File

@ -246,8 +246,8 @@ meta_background_image_cache_purge (MetaBackgroundImageCache *cache,
{ {
MetaBackgroundImage *image; MetaBackgroundImage *image;
g_return_val_if_fail (META_IS_BACKGROUND_IMAGE_CACHE (cache), NULL); g_return_if_fail (META_IS_BACKGROUND_IMAGE_CACHE (cache));
g_return_val_if_fail (filename != NULL, NULL); g_return_if_fail (filename != NULL);
image = g_hash_table_lookup (cache->images, filename); image = g_hash_table_lookup (cache->images, filename);
if (image == NULL) if (image == NULL)

View File

@ -677,9 +677,9 @@ meta_background_get_texture (MetaBackground *self,
cairo_rectangle_int_t monitor_area; cairo_rectangle_int_t monitor_area;
CoglTexture *texture1, *texture2; CoglTexture *texture1, *texture2;
g_return_if_fail (META_IS_BACKGROUND (self)); g_return_val_if_fail (META_IS_BACKGROUND (self), NULL);
priv = self->priv; priv = self->priv;
g_return_if_fail (monitor_index <= 0 && monitor_index < priv->n_monitors); g_return_val_if_fail (monitor_index <= 0 && monitor_index < priv->n_monitors, NULL);
monitor = &priv->monitors[monitor_index]; monitor = &priv->monitors[monitor_index];