Building with clang 21.1.8 and --enable-werror fails because glibc 2.43 adopted the C23 behavior for strrchr(), where it now returns const char* when its input is const char*. Assigning the result to a plain char* discards the const qualifier, which clang rejects as an error since the flag is passed. Change-Id: Ib8eecd603bedb4a69c8f7bd93e49f01e8eba28d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199863 Tested-by: Jenkins Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk>