]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: Fix missing brackets around if statement body.
authorMark Wielaard <mjw@redhat.com>
Sat, 9 Jan 2016 21:09:48 +0000 (22:09 +0100)
committerMark Wielaard <mjw@redhat.com>
Sat, 9 Jan 2016 21:09:48 +0000 (22:09 +0100)
commitc5da7c9e08c2bdb6dba8e115dcc09ed51a07f0e4
tree62f4e45536913902984bcfc64b37d67239407073
parent53e447113b60b56fb88109884749133d1b2e0d75
libebl: Fix missing brackets around if statement body.

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 <mjw@redhat.com>
libebl/ChangeLog
libebl/eblobjnote.c