On 6/16/22 16:09, Bruno Haible wrote:
(defined __apple_build_version__ \
? 6000000 <= __apple_build_version__ \
: 3 < __clang_major__ + (9 <= __clang_minor__))
This should be protected by defined __clang_major__ for the same reason
that __GNUC__ has similar protection.
Also, I looked at the source code for old Clang releases for my
statement in <https://lists.gnu.org/r/bug-gnulib/2022-06/msg00063.html>
that support for -Wvla was added in Clang 2.8, so we can use that for
__clang_major__ and __clang_minor__. I don't know which (if any) Apple
build version corresponds to 2.8.
Also, is a change needed in regex.h but not regex.c because different
warning flags are used to compile regex.c vs regex.h's other includers?
That part is still a bit unclear to me.