* include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
on older compiler.
+2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * include/grub/list.h (grub_bad_type_cast_real): Remove return.
+ * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
+ on older compiler.
+
2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
* util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
{
grub_fatal ("error:%s:%u: bad type cast between incompatible grub types",
file, line);
- return 0;
}
#define grub_bad_type_cast() grub_bad_type_cast_real(__LINE__, GRUB_FILE)
# define ATTRIBUTE_ERROR(msg) \
__attribute__ ((__error__ (msg)))
#else
-# define ATTRIBUTE_ERROR(msg)
+# define ATTRIBUTE_ERROR(msg) __attribute__ ((noreturn))
#endif
#define ALIGN_UP(addr, align) \