From a7db7b1385ece9c10ad1d7c13d9c842b52a39002 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 Jan 2013 14:39:54 -0800 Subject: add explicit braces to clarify which if the else goes with Suggested by clang: xvinfo.c:125:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ Signed-off-by: Alan Coopersmith --- xvinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xvinfo.c') diff --git a/xvinfo.c b/xvinfo.c index 605af56..bdc69cd 100644 --- a/xvinfo.c +++ b/xvinfo.c @@ -118,12 +118,13 @@ main(int argc, char *argv[]) attributes[k].name, attributes[k].min_value, attributes[k].max_value); - if (attributes[k].flags & XvSettable) + if (attributes[k].flags & XvSettable) { if (!shortmode) fprintf(stdout, " client settable attribute\n"); else fprintf(stdout, " settable"); + } if (attributes[k].flags & XvGettable) { Atom the_atom; -- cgit v1.2.3