From bd70a176c19c09c49c6c3c01ea088ca947c45966 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 4 Nov 2016 20:36:51 -0400 Subject: [PATCH] src/rxgen/rpc_parse.c: Fix misleading indentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes this warning (error with --enable-checking) from GCC 6.2: rpc_parse.c: In function ‘analyze_ProcParams’: rpc_parse.c:861:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (tokp->kind != TOK_RPAREN) ^~ rpc_parse.c:863:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ *tailp = decls; ^ Change-Id: Ia63311c20eb8cd96123ba97b0bf7621b82956e79 Reviewed-on: https://gerrit.openafs.org/12435 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/rxgen/rpc_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c index 2a47facd3..ab26c954a 100644 --- a/src/rxgen/rpc_parse.c +++ b/src/rxgen/rpc_parse.c @@ -858,8 +858,8 @@ analyze_ProcParams(definition * defp, token * tokp) Proc_listp = &Proc_list->next; decls = ALLOC(decl_list); memset(decls, 0, sizeof(decl_list)); - if (tokp->kind != TOK_RPAREN) - decls->decl = dec; + if (tokp->kind != TOK_RPAREN) + decls->decl = dec; *tailp = decls; tailp = &decls->next; } while (tokp->kind != TOK_RPAREN); -- 2.39.5