diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 13:54:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 14:02:22 -0700 |
commit | 20ab8fc3080fb5c115116d3ba71c5b093eef278c (patch) | |
tree | 157797dc03962e0a663db358d7e01b88749928a8 /src | |
parent | 6bb47c10f60a40df9d6a82d87d3ffe4593e1498d (diff) | |
download | diffutils-20ab8fc3080fb5c115116d3ba71c5b093eef278c.tar.gz |
maint: lint → GCC_LINT
‘lint’ is for traditional lint and perhaps some other tools;
‘GCC_LINT’ is targeted more for what we do.
Gnulib accepts either, but we might as well be more accurate.
* configure.ac (GCC_LINT): Define this instead of ‘lint’.
All uses changed.
Diffstat (limited to 'src')
-rw-r--r-- | src/diff3.c | 6 | ||||
-rw-r--r-- | src/system.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/diff3.c b/src/diff3.c index 01e8ecd..09d987f 100644 --- a/src/diff3.c +++ b/src/diff3.c @@ -88,7 +88,7 @@ struct diff_block { char **lines[2]; /* The actual lines (may contain nulls) */ size_t *lengths[2]; /* Line lengths (including newlines, if any) */ struct diff_block *next; -#ifdef lint +#ifdef GCC_LINT struct diff_block *n2; /* Used only when freeing. */ #endif }; @@ -228,7 +228,7 @@ static struct option const longopts[] = static void free_diff_block (struct diff_block *p) { -#ifndef lint +#ifndef GCC_LINT (void)p; #else while (p) @@ -249,7 +249,7 @@ free_diff_block (struct diff_block *p) static void next_to_n2 (struct diff_block *p) { -#ifndef lint +#ifndef GCC_LINT (void)p; #else while (p) diff --git a/src/system.h b/src/system.h index 1e7c288..b6d86a9 100644 --- a/src/system.h +++ b/src/system.h @@ -21,7 +21,7 @@ #include <config.h> /* Use this to suppress gcc's "...may be used before initialized" warnings. */ -#ifdef lint +#ifdef GCC_LINT # define IF_LINT(Code) Code #else # define IF_LINT(Code) /* empty */ |