summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-12-01 12:16:42 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-12-01 12:16:42 +0000
commit64395382a6abfe574df8b20d155cda01d4d6e87d (patch)
treedac36fdf7f8f4a155d645f1dd9f8e0d5d71104d4
parent3a2555413928297b2621a84edf3fb1828115c229 (diff)
downloadgnome-desktop-64395382a6abfe574df8b20d155cda01d4d6e87d.tar.gz
gnome-rr: Add braces to fix an ambiguous ‘else’ statement
Recent versions of GCC (5.1.1) warn about this, which breaks building with -Werror.
-rw-r--r--libgnome-desktop/gnome-rr-output-info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgnome-desktop/gnome-rr-output-info.c b/libgnome-desktop/gnome-rr-output-info.c
index 6d480015..833a03a1 100644
--- a/libgnome-desktop/gnome-rr-output-info.c
+++ b/libgnome-desktop/gnome-rr-output-info.c
@@ -244,10 +244,12 @@ static void gnome_rr_output_info_set_tiled_geometry (GnomeRROutputInfo *self, in
/* for primary tile only configs turn off non-primary
tiles - turn them on for tiled ones */
if (ht != 0 || vt != 0)
+ {
if (self->priv->on == FALSE)
outputs[i]->priv->on = FALSE;
else
outputs[i]->priv->on = !primary_tile_only;
+ }
if (primary_tile_only)
{