Re: [U-Boot] [PATCH] cmd/tpm_test: Fix misleading code indentation

2016-10-25 Thread Simon Glass
On 17 October 2016 at 16:17, Simon Glass wrote: > 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... >> [-Wmisleadi

Re: [U-Boot] [PATCH] cmd/tpm_test: Fix misleading code indentation

2016-10-17 Thread Simon Glass
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++) >^~~ >

[U-Boot] [PATCH] cmd/tpm_test: Fix misleading code indentation

2016-10-16 Thread Stefan Brüns
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