Date: Thu, 7 Aug 2014 14:26:44 +0000 (UTC) From: Julio Merino <jmmv@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269665 - head/usr.bin/m4 Message-ID: <53e38ca4.52a0.5778d22b@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e38ca4.52a0.5778d22b>