]> git.ipfire.org Git - thirdparty/grub.git/commit
dl: Fix grub_dl_is_persistent() for emu
authorGary Lin <glin@suse.com>
Thu, 3 Jul 2025 06:09:41 +0000 (14:09 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 11 Jul 2025 14:25:14 +0000 (16:25 +0200)
commitcf5e52fa85ddabe919d30a5763690d2c6c48d1b8
tree284c940cb2c62c0c0bec174ae91decc228393016
parenta68a7dece464c35b1c8d20b98502b6881b103911
dl: Fix grub_dl_is_persistent() for emu

When attempting to build grub-emu the compilation failed with the
following error message:

  include/grub/dl.h: In function â€˜grub_dl_is_persistent’:
  include/grub/dl.h:262:1: error: no return statement in function returning non-void [-Werror=return-type]

To avoid the error make the function always return 0.

Fixes: ba8eadde6be1 (dl: Provide a fake grub_dl_set_persistent() and grub_dl_is_persistent() for the emu target)
Signed-off-by: Gary Lin <glin@suse.com>
Cc: Daniel Axtens <dja@axtens.net>
Cc: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/dl.h