svn commit: r269665 - head/usr.bin/m4
Julio Merino
jmmv at FreeBSD.org
Thu Aug 7 14:26:44 UTC 2014
Author: jmmv
Date: Thu Aug 7 14:26:44 2014
New Revision: 269665
URL: http://svnweb.freebsd.org/changeset/base/269665
Log:
Avoid name shadowing to fix build under powerpc64.
Error was:
cc1: warnings being treated as errors
.../usr.bin/m4/misc.c: In function 'm4errx':
.../usr.bin/m4/misc.c:268: warning: declaration of 'eval' shadows a global declaration
.../usr.bin/m4/extern.h:40: warning: shadowed declaration is here
Modified:
head/usr.bin/m4/misc.c
Modified: head/usr.bin/m4/misc.c
==============================================================================
--- head/usr.bin/m4/misc.c Thu Aug 7 12:47:25 2014 (r269664)
+++ head/usr.bin/m4/misc.c Thu Aug 7 14:26:44 2014 (r269665)
@@ -265,7 +265,7 @@ killdiv(void)
extern char *__progname;
void
-m4errx(int eval, const char *fmt, ...)
+m4errx(int exitstatus, const char *fmt, ...)
{
fprintf(stderr, "%s: ", __progname);
fprintf(stderr, "%s at line %lu: ", CURRENT_NAME, CURRENT_LINE);
@@ -277,7 +277,7 @@ m4errx(int eval, const char *fmt, ...)
va_end(ap);
}
fprintf(stderr, "\n");
- exit(eval);
+ exit(exitstatus);
}
/*
More information about the svn-src-head
mailing list