bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/1] Fix issue building regex with clang


From: Darren Kenny
Subject: [PATCH 0/1] Fix issue building regex with clang
Date: Tue, 14 Jun 2022 13:24:51 +0000

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]