On Solaris 11.4, I'm seeing this gcc warning: getlocalename_l-unsafe.c:682:1: warning: control reaches end of non-void function [-Wreturn-type]
This patch should fix it. 2025-04-02 Bruno Haible <br...@clisp.org> getlocalename_l-unsafe: Avoid undefined behaviour on Solaris 11.4. * lib/getlocalename_l-unsafe.c (getlocalename_l_unsafe): On Solaris 11.4, use "" as fallback. diff --git a/lib/getlocalename_l-unsafe.c b/lib/getlocalename_l-unsafe.c index 1f24f82ddb..6a72c81192 100644 --- a/lib/getlocalename_l-unsafe.c +++ b/lib/getlocalename_l-unsafe.c @@ -543,6 +543,8 @@ getlocalename_l_unsafe (int category, locale_t locale) default: /* We shouldn't get here. */ return (struct string_with_storage) { "", STORAGE_INDEFINITE }; } + /* We shouldn't get here. */ + return (struct string_with_storage) { "", STORAGE_INDEFINITE }; # else /* Solaris 11 OpenIndiana. For the internal structure of locale objects, see