Allow each file to fix the warnings guarded by the macro separately by
moving the definition from the shared xinclude.h into each file that
needs it.
xmerge.c and xprepare.c do not contain any signed vs. unsigned
comparisons so the definition was not included in these files.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
*
*/
+#define DISABLE_SIGN_COMPARE_WARNINGS
+
#include "xinclude.h"
static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#define DISABLE_SIGN_COMPARE_WARNINGS
+
#include "xinclude.h"
#define MAX_PTR UINT_MAX
#if !defined(XINCLUDE_H)
#define XINCLUDE_H
-#define DISABLE_SIGN_COMPARE_WARNINGS
-
#include "git-compat-util.h"
#include "xmacros.h"
#include "xdiff.h"
* Davide Libenzi <davidel@xmailserver.org>
*
*/
+
+#define DISABLE_SIGN_COMPARE_WARNINGS
+
#include "xinclude.h"
/*
*
*/
+#define DISABLE_SIGN_COMPARE_WARNINGS
+
#include "xinclude.h"