mkimage: make it easier to run syntax checkers on grub-mkimagexx.c
authorPeter Jones <pjones@redhat.com>
Wed, 21 Feb 2018 20:20:24 +0000 (15:20 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 5 Mar 2018 12:44:55 +0000 (13:44 +0100)
commit352868d1234c94393e84871072372d73cb1166fa
tree7f4ac5522337c4be3842aeb933f4deb25ecf85a1
parente1ead149efadf420fe16d2ce0b109a6982b8a5f6
mkimage: make it easier to run syntax checkers on grub-mkimagexx.c

This makes it so you can treat grub-mkimagexx.c as a file you can build
directly, so syntax checkers like vim's "syntastic" plugin, which uses
"gcc -x c -fsyntax-only" to build it, will work.

One still has to do whatever setup is required to make it pick the right
include dirs, which -W options we use, etc., but this makes it so you
can do the checking on the file you're editing, rather than on a
different file.

Signed-off-by: Peter Jones <pjones@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-mkimage32.c
util/grub-mkimage64.c
util/grub-mkimagexx.c