]> git.ipfire.org Git - thirdparty/git.git/commit
compat/regex: explicitly ignore "-Wsign-compare" warnings
authorPatrick Steinhardt <ps@pks.im>
Fri, 6 Dec 2024 10:27:17 +0000 (11:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2024 11:20:01 +0000 (20:20 +0900)
commit6e1d0ce47014f2d8434c54ef70dc9b43602652a5
tree6170faf597a5140aeda91725d205c930bbd0b416
parent2121a76d71e6742fe9627289b45717663bcef832
compat/regex: explicitly ignore "-Wsign-compare" warnings

Explicitly ignore "-Wsign-compare" warnings in our bundled copy of the
regcomp implementation. We don't use the macro introduced in the
preceding commit because this code does not include "git-compat-util.h"
in the first place.

Note that we already directly use "#pragma GCC diagnostic ignored" in
"regcomp.c", so it shouldn't be an issue to use it directly in the new
spot, either.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regex.c