]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 22 Feb 2012 04:16:26 +0000 (05:16 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 22 Feb 2012 04:16:26 +0000 (05:16 +0100)
on show_error.

ChangeLog
grub-core/kern/emu/hostdisk.c

index c839e398ebf0955d317d23d77741200824ecc2a2..1608dd9c83a7d21957171c6fd92a68d98e881fbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
+       on show_error.
+
 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
index 46e751e331149963222bd2e2de29df12ba7068a2..bd8c2816e71f12024f6ee15af5908c73530809fe 100644 (file)
@@ -1145,8 +1145,9 @@ read_device_map (const char *dev_map)
   int lineno = 0;
   struct stat st;
 
-  auto void show_error (const char *msg);
-  void show_error (const char *msg)
+  auto void show_error (const char *msg)
+    __attribute__ ((noreturn));
+  void __attribute__ ((noreturn)) show_error (const char *msg)
     {
       grub_util_error ("%s:%d: %s", dev_map, lineno, msg);
     }