From: Anders Kaseorg Date: Sat, 5 Nov 2016 00:36:51 +0000 (-0400) Subject: src/rxgen/rpc_parse.c: Fix misleading indentation X-Git-Tag: upstream/1.6.21^2~56 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=31fce796b8d368194f31227d9d0481b00bb45e97;p=packages%2Fo%2Fopenafs.git src/rxgen/rpc_parse.c: Fix misleading indentation 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; ^ Reviewed-on: https://gerrit.openafs.org/12435 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit bd70a176c19c09c49c6c3c01ea088ca947c45966) Change-Id: I099cba14fbe53c510886c0d342ad3fce60750411 Reviewed-on: https://gerrit.openafs.org/12482 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c index 5d7a2ca3f..79c120727 100644 --- a/src/rxgen/rpc_parse.c +++ b/src/rxgen/rpc_parse.c @@ -903,8 +903,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);