aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2019-01-15 22:20:59 +0800
committerVincent Guittot <vincent.guittot@linaro.org>2019-01-16 11:08:25 +0100
commitde844cdd8c887363060fd9375755a870713255ba (patch)
tree68d15ae64c13969c137c82fafe2d4124523b75c1
parent6dcec99e18da1c750b52373906f069c360bbe477 (diff)
Fix compilation error for wrong indentationHEADmaster
If compile with GCC 7.3.0 on Ubuntu 18.04, compiler reports the error as below: protocol.c: In function ‘aep_protocol_parser’: protocol.c:238:4: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (v != 0xac) ^~ protocol.c:241:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (aep->aep_context->verbose) ^~ cc1: all warnings being treated as errors This error is caused by wrong indentation, so remove an unnecessary indentation level. Signed-off-by: Leo Yan <leo.yan@linaro.org>
-rw-r--r--libarmep/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarmep/protocol.c b/libarmep/protocol.c
index ad05c64..0a10c55 100644
--- a/libarmep/protocol.c
+++ b/libarmep/protocol.c
@@ -238,7 +238,7 @@ int aep_protocol_parser(struct aep *aep, int samples)
if (v != 0xac)
return -1;
- if (aep->aep_context->verbose)
+ if (aep->aep_context->verbose)
fprintf(stderr,
"Start acknowledge seen "
"%s %s %08X %d\n",