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
..
2013-01-12 13:30:37 +00:00
2014-12-07 14:56:17 +03:00
2010-09-15 14:46:53 +02:00
2013-10-13 20:03:42 +02:00
2013-08-14 10:56:55 +02:00
2013-12-14 21:50:36 +01:00
2013-12-21 13:47:27 +01:00
2013-11-23 12:42:30 +01:00
2015-01-27 17:17:58 +01:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2015-01-30 22:45:58 +03:00
2014-06-21 20:26:47 +02:00
2013-11-29 12:19:36 +00:00
2013-12-21 18:08:25 +01:00
2015-01-26 23:04:09 +03:00
2015-01-27 17:17:58 +01:00
2012-12-28 06:57:17 +00:00
2015-01-26 09:55:58 +01:00
2013-11-11 22:48:43 +01:00
2013-10-13 20:36:28 +02:00
2014-12-07 14:56:17 +03:00
2014-08-14 21:02:31 +04:00
2014-09-22 20:47:10 +04:00
2014-01-25 19:54:51 +04:00
2015-01-30 22:26:05 +03:00
2014-09-22 20:47:10 +04:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2015-01-24 17:45:16 +01:00
2015-01-26 23:04:09 +03:00
2015-01-26 23:04:09 +03:00
2013-12-17 14:39:48 +01:00
2015-01-27 22:11:52 +03:00
2013-11-15 14:32:03 +00:00
2013-12-21 18:08:25 +01:00
2013-12-21 18:08:25 +01:00
2013-10-26 20:05:29 +02:00
2013-12-21 18:08:25 +01:00
2014-01-24 18:20:27 +01:00
2014-01-25 21:49:41 +04:00
2013-11-07 06:35:50 +01:00
2012-03-10 20:47:12 +01:00
2015-01-26 09:56:24 +01:00
2015-02-12 22:18:01 +03:00
2013-11-16 20:21:16 +01:00
2013-12-21 18:08:25 +01:00
2013-10-13 20:36:28 +02:00
2013-10-15 16:16:04 +02:00
2013-10-15 16:16:04 +02:00
2015-01-30 22:57:39 +03:00
2013-01-21 14:55:30 +01:00