forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'da/xdiff-w-sign-compare-workaround' into seen
* da/xdiff-w-sign-compare-workaround: xdiff: avoid signed vs. unsigned comparisons in xutils.c xdiff: avoid signed vs. unsigned comparisons in xpatience.c xdiff: avoid signed vs. unsigned comparisons in xhistogram.c xdiff: avoid signed vs. unsigned comparisons in xemit.c xdiff: avoid signed vs. unsigned comparisons in xdiffi.c xdiff: move sign comparison warning guard into each file
- Loading branch information
Showing
6 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
* Davide Libenzi <[email protected]> | ||
* | ||
*/ | ||
#define DISABLE_SIGN_COMPARE_WARNINGS | ||
|
||
#include "xinclude.h" | ||
|
||
|
@@ -1014,7 +1013,7 @@ static void xdl_mark_ignorable_lines(xdchange_t *xscr, xdfenv_t *xe, long flags) | |
|
||
static int record_matches_regex(xrecord_t *rec, xpparam_t const *xpp) { | ||
regmatch_t regmatch; | ||
int i; | ||
size_t i; | ||
|
||
for (i = 0; i < xpp->ignore_regex_nr; i++) | ||
if (!regexec_buf(xpp->ignore_regex[i], rec->ptr, rec->size, 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
* Davide Libenzi <[email protected]> | ||
* | ||
*/ | ||
|
||
#include "xinclude.h" | ||
|
||
/* | ||
|
@@ -75,7 +76,7 @@ struct hashmap { | |
|
||
static int is_anchor(xpparam_t const *xpp, const char *line) | ||
{ | ||
int i; | ||
size_t i; | ||
for (i = 0; i < xpp->anchors_nr; i++) { | ||
if (!strncmp(line, xpp->anchors[i], strlen(xpp->anchors[i]))) | ||
return 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters