From de844cdd8c887363060fd9375755a870713255ba Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Tue, 15 Jan 2019 22:20:59 +0800 Subject: Fix compilation error for wrong indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- libarmep/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.3