aboutsummaryrefslogtreecommitdiffstats
path: root/xdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-06 11:27:19 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-06 20:20:02 +0900
commit41f43b8243f42b9df2e98be8460646d4c0100ad3 (patch)
tree27a0fe0c493a3e08af4d502aaad6be01fac69118 /xdiff
parent709fdce0893f93464435841e0eb9f6df3fd73807 (diff)
downloadgit-41f43b8243f42b9df2e98be8460646d4c0100ad3.tar.gz
global: mark code units that generate warnings with `-Wsign-compare`
Mark code units that generate warnings with `-Wsign-compare`. This allows for a structured approach to get rid of all such warnings over time in a way that can be easily measured. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff')
-rw-r--r--xdiff/xdiffi.c1
-rw-r--r--xdiff/xinclude.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 344c2dfc3e..4685ba6137 100644
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
@@ -19,6 +19,7 @@
* Davide Libenzi <davidel@xmailserver.org>
*
*/
+#define DISABLE_SIGN_COMPARE_WARNINGS
#include "xinclude.h"
diff --git a/xdiff/xinclude.h b/xdiff/xinclude.h
index a4285ac0eb..7e56542526 100644
--- a/xdiff/xinclude.h
+++ b/xdiff/xinclude.h
@@ -23,6 +23,8 @@
#if !defined(XINCLUDE_H)
#define XINCLUDE_H
+#define DISABLE_SIGN_COMPARE_WARNINGS
+
#include "git-compat-util.h"
#include "xmacros.h"
#include "xdiff.h"