[gnome-desktop] gnome-rr: Add braces to fix an ambiguous ‘else’ statement
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-rr: Add braces to fix an ambiguous ‘else’ statement
- Date: Tue, 1 Dec 2015 12:17:38 +0000 (UTC)
commit 64395382a6abfe574df8b20d155cda01d4d6e87d
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Dec 1 12:16:42 2015 +0000
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.
libgnome-desktop/gnome-rr-output-info.c | 2 ++
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 6d48001..833a03a 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]