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>

Patrick Steinhardt committed Dec 6, 2024 at 11:27 UTC 6e1d0ce47014f2d8434c54ef70dc9b43602652a5
1 file changed +2
compat/regex/regex.c
+2
@@ -17,6 +17,8 @@
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20 +#pragma GCC diagnostic ignored "-Wsign-compare"
21 +
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif