[PATCH util/makedepend 1/3] Fix bad indentation in ifparser.c

Alan Coopersmith alan.coopersmith at oracle.com
Sat May 5 18:11:56 UTC 2018


ifparser.c: In function ‘parse_product’:
ifparser.c:300:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
     else
     ^~~~
ifparser.c:302:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  break;
  ^~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 ifparser.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ifparser.c b/ifparser.c
index 0efa550..4fb4d58 100644
--- a/ifparser.c
+++ b/ifparser.c
@@ -295,10 +295,10 @@ parse_product (IfParser *g, const char *cp, long *valp)
 
       case '/':
 	DO (cp = parse_product (g, cp + 1, &rightval));
-    if (rightval)
+	if (rightval)
 	    *valp = (*valp / rightval);
-    else
-        *valp = LONG_MAX;
+	else
+	    *valp = LONG_MAX;
 	break;
 
       case '%':
-- 
2.15.0



More information about the xorg-devel mailing list