grub/util
Jiri Slaby 32cd33bd19 util: mkimage, fix gcc5 build failure
gcc5 reports:
../util/mkimage.c: In function 'grub_install_get_image_target':
../util/mkimage.c:954:5: error: loop exit may only be reached after undefined behavior [-Werror=aggressive-loop-optimizations]
     && j < ARRAY_SIZE (image_targets[i].names); j++)
     ^
../util/mkimage.c:953:39: note: possible undefined statement is here
      for (j = 0; image_targets[i].names[j]
                                        ^

Well, let's move the index 'j' test before accesing the array to:
1) make the loop obvious
2) make gcc happy

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2015-02-12 22:18:01 +03:00
..
bash-completion.d
grub.d
i386/efi
ieee1275
bin2h.c
config.c
editenv.c
garbage-gen.c
getroot.c
glue-efi.c
grub-editenv.c
grub-file.c
grub-fstest.c
grub-gen-asciih.c
grub-gen-widthspec.c
grub-glue-efi.c
grub-install-common.c
grub-install.c
grub-kbdcomp.in
grub-macbless.c
grub-macho2img.c
grub-menulst2cfg.c
grub-mkconfig.in
grub-mkconfig_lib.in
grub-mkfont.c
grub-mkimage.c
grub-mkimagexx.c
grub-mklayout.c
grub-mknetdir.c
grub-mkpasswd-pbkdf2.c
grub-mkrelpath.c
grub-mkrescue.c
grub-mkstandalone.c
grub-mount.c
grub-pe2elf.c
grub-probe.c
grub-reboot.in
grub-render-label.c
grub-script-check.c
grub-set-default.in
grub-setup.c
grub-syslinux2cfg.c
import_gcry.py
import_gcrypth.sed
import_unicode.py
misc.c
mkimage.c util: mkimage, fix gcc5 build failure 2015-02-12 22:18:01 +03:00
probe.c
render-label.c
resolve.c
setup.c
setup_bios.c
setup_sparc.c
spkmodem-recv.c