* grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
on show_error.
This commit is contained in:
parent
9679053902
commit
c44866b2a6
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue