Skip to content

Commit 6e1d0ce

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2121a76 commit 6e1d0ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/regex/regex.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
License along with the GNU C Library; if not, see
1818
<http://www.gnu.org/licenses/>. */
1919

20+
#pragma GCC diagnostic ignored "-Wsign-compare"
21+
2022
#ifdef HAVE_CONFIG_H
2123
#include "config.h"
2224
#endif

0 commit comments

Comments
 (0)