From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 17 Oct 2016 16:17:15 -0600 Subject: [U-Boot] [PATCH] cmd/tpm_test: Fix misleading code indentation In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16 October 2016 at 09:13, Stefan Br?ns wrote: > GCC 6.2 reasonably complains about the current code: > > ../cmd/tpm_test.c: In function ?do_tpmtest?: > ../cmd/tpm_test.c:540:3: warning: this ?for? clause does not guard... [-Wmisleading-indentation] > for (i = 0; i < argc; i++) > ^~~ > ../cmd/tpm_test.c:542:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ?for? > printf("\n------\n"); > ^~~~~~ > > Signed-off-by: Stefan Br?ns > --- > cmd/tpm_test.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) Reviewed-by: Simon Glass