From c5da7c9e08c2bdb6dba8e115dcc09ed51a07f0e4 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 9 Jan 2016 22:09:48 +0100 Subject: libebl: Fix missing brackets around if statement body. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC6 [will have] a nice new warning that showed a real bug: elfutils/libebl/eblobjnote.c: In function ‘ebl_object_note’: elfutils/libebl/eblobjnote.c:135:5: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] switch (type) ^~~~~~ elfutils/libebl/eblobjnote.c:45:3: note: ...this ‘if’ clause, but it is not if (! ebl->object_note (name, type, descsz, desc)) ^~ And indeed, it should have been under the if, but wasn't because of missing brackets. Added brackets (and reindent). Signed-off-by: Mark Wielaard --- libebl/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libebl/ChangeLog') diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 312cf90d..aa3d6867 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,8 @@ +2016-01-09 Mark Wielaard + + * eblobjnote.c (ebl_object_note): Add brackets around if statement + body. + 2015-12-18 Mark Wielaard * eblopenbackend.c (default_debugscn_p): Also match .zdebug sections. -- cgit v1.2.3