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 Clean up dangling references to grub-setup. 2013-01-12 13:30:37 +00:00
grub.d Avoid use of non-portable echo -n in grub-mkconfig 2014-12-07 14:56:17 +03:00
i386/efi Merge mainline into install 2010-09-15 14:46:53 +02:00
ieee1275 Move set_program_name and init_nls to host_init. On windows 2013-10-13 20:03:42 +02:00
bin2h.c Fix handling of build-time grub-bin2h and grub-mkfont when doing 2013-08-14 10:56:55 +02:00
config.c * util/config.c: Remove trailing newline from distributor in simple 2013-12-14 21:50:36 +01:00
editenv.c Add missing includes. 2013-12-21 13:47:27 +01:00
garbage-gen.c * util/garbage-gen.c: Add missing include of sys/time.h. 2013-11-23 12:42:30 +01:00
getroot.c Document intentional fallthroughs. 2015-01-27 17:17:58 +01:00
glue-efi.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-editenv.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-file.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-fstest.c grub-fstest: fix descriptor leak 2015-01-30 22:45:58 +03:00
grub-gen-asciih.c * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable. 2014-06-21 20:26:47 +02:00
grub-gen-widthspec.c Fix build with FreeType 2.5.1 2013-11-29 12:19:36 +00:00
grub-glue-efi.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-install-common.c util/install: fix memory leak. 2015-01-26 23:04:09 +03:00
grub-install.c Document intentional fallthroughs. 2015-01-27 17:17:58 +01:00
grub-kbdcomp.in Apply program name transformations at build-time rather than at 2012-12-28 06:57:17 +00:00
grub-macbless.c grub-macbless: Fix resource leak. 2015-01-26 09:55:58 +01:00
grub-macho2img.c * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen. 2013-11-11 22:48:43 +01:00
grub-menulst2cfg.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
grub-mkconfig.in Fix typo (gettext_print instead of gettext_printf) 2014-08-14 21:02:31 +04:00
grub-mkconfig_lib.in Avoid use of non-portable echo -n in grub-mkconfig 2014-12-07 14:56:17 +03:00
grub-mkfont.c cleanup: grub_cpu_to_XXX_compile_time for constants 2014-09-22 20:47:10 +04:00
grub-mkimage.c do not set default prefix in grub-mkimage 2014-01-25 19:54:51 +04:00
grub-mkimagexx.c grub-mkimage: fix potential NULL pointer dereference 2015-01-30 22:26:05 +03:00
grub-mklayout.c cleanup: grub_cpu_to_XXX_compile_time for constants 2014-09-22 20:47:10 +04:00
grub-mknetdir.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-mkpasswd-pbkdf2.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-mkrelpath.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-mkrescue.c util/grub-mkrescue.c: Always include part_msdos and part_gpt on EFI. 2015-01-24 17:45:16 +01:00
grub-mkstandalone.c util/grub-mkstandalone: fix memory leak. 2015-01-26 23:04:09 +03:00
grub-mount.c util/grub-mount: fix descriptor leak. 2015-01-26 23:04:09 +03:00
grub-pe2elf.c Implement grub_file tool and use it to implement generating of config 2013-12-17 14:39:48 +01:00
grub-probe.c util/grub-probe: fix memory leaks. 2015-01-27 22:11:52 +03:00
grub-reboot.in * util/grub-reboot.in (usage): Fix a typo. 2013-11-15 14:32:03 +00:00
grub-render-label.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-script-check.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-set-default.in * util/grub-mkconfig.in: Replace $0 with $self. 2013-10-26 20:05:29 +02:00
grub-setup.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
grub-syslinux2cfg.c Fix several translatable strings. 2014-01-24 18:20:27 +01:00
import_gcry.py fix Mingw W64-32 cross compile failure due to printf redefinition in libintl.h 2014-01-25 21:49:41 +04:00
import_gcrypth.sed Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00
import_unicode.py * util/import_unicode.py: Add missing brackets around string for 2012-03-10 20:47:12 +01:00
misc.c util/misc.c: Check ftello return value. 2015-01-26 09:56:24 +01:00
mkimage.c util: mkimage, fix gcc5 build failure 2015-02-12 22:18:01 +03:00
probe.c Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir 2013-11-16 20:21:16 +01:00
render-label.c Build fixes for argp.h with older gcc. 2013-12-21 18:08:25 +01:00
resolve.c Add a wrapper for fopen. On unix-like systems just pass-through. On 2013-10-13 20:36:28 +02:00
setup.c setup: fix blocklist size calculation 2015-01-30 22:57:39 +03:00
setup_bios.c Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c) 2013-10-15 16:16:04 +02:00
setup_sparc.c Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c) 2013-10-15 16:16:04 +02:00
spkmodem-recv.c Improve spkmomdem reliability by adding a separator between bytes. 2013-01-21 14:55:30 +01:00