]> git.proxmox.com Git - grub2.git/blobdiff - grub-core/commands/halt.c
Add noreturn attributes and remove unreachable code.
[grub2.git] / grub-core / commands / halt.c
index 317f7753fd8779f639854ef0d6b3b16b8214a89e..f8596ecdca85e69826fa8285da58a4d783ab5fea 100644 (file)
 
 GRUB_MOD_LICENSE ("GPLv3+");
 
-static grub_err_t
+static grub_err_t __attribute__ ((noreturn))
 grub_cmd_halt (grub_command_t cmd __attribute__ ((unused)),
               int argc __attribute__ ((unused)),
               char **args __attribute__ ((unused)))
 {
   grub_halt ();
-  return 0;
 }
 
 static grub_command_t cmd;