GRUB makes use of a built-in version of gnulib, but when attempting to build it with clang, it is failing when building regex due to the use of variable-length arrays.
There is a pragma that disables this when using GCC, but that is not enabled when building with clang. On the otherhand, clang also supports these same pragmas, even though they appear to be GCC specific. So this patch enables it for clang 9 and above, when I believe that it was enabed by default with -Weverything/-Werror - but I'm open to correction on that since I had no way to confirm it on earlier versions. Darren Kenny (1): regex: fix broken clang build lib/regex.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.31.1