The attached patch fixes the following warnings when building GRUB on NetBSD (and probably other BSDs): util/getroot.c: In function 'grub_make_system_path_relative_to_its_root': util/getroot.c:2711:2: error: label 'parsedir' defined but not used util/getroot.c: At top level: util/getroot.c:1084:1: error: 'get_dm_uuid' defined but not used util/getroot.c:1119:1: error: 'grub_util_get_dm_abstraction' defined but not used Grégoire