From c44866b2a6f717de6d8c2c680e1d77a02c861346 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 22 Feb 2012 05:16:26 +0100 Subject: [PATCH] * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn on show_error. --- ChangeLog | 5 +++++ grub-core/kern/emu/hostdisk.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c839e398e..1608dd9c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-22 Vladimir Serbinenko + + * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn + on show_error. + 2012-02-22 Vladimir Serbinenko * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier. diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c index 46e751e33..bd8c2816e 100644 --- a/grub-core/kern/emu/hostdisk.c +++ b/grub-core/kern/emu/hostdisk.c @@ -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); }