* grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn

on show_error.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-22 05:16:26 +01:00
parent 9679053902
commit c44866b2a6
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View 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);
}