summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-04-20 21:37:26 +0000
committerjmallett <jmallett@FreeBSD.org>2002-04-20 21:37:26 +0000
commit57eb4121a58efa8b5e3ffffd82f5b5c013009cb6 (patch)
tree293fe43bba18792a33f47e068670c225f05dfe65 /usr.bin/m4
parent6e73b69f347f0157c87e482794b006f55fcbbbb3 (diff)
downloadFreeBSD-src-57eb4121a58efa8b5e3ffffd82f5b5c013009cb6.zip
FreeBSD-src-57eb4121a58efa8b5e3ffffd82f5b5c013009cb6.tar.gz
Use %zu to print a size_t, not %u and definitely not %d.
Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going to mix WARNS and NO_WERROR. Submitted by: fenner
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/Makefile1
-rw-r--r--usr.bin/m4/gnum4.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/m4/Makefile b/usr.bin/m4/Makefile
index 6381ad3..cc54a0e 100644
--- a/usr.bin/m4/Makefile
+++ b/usr.bin/m4/Makefile
@@ -8,7 +8,6 @@ PROG= m4
CFLAGS+=-DEXTENDED
SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c
-WARNS?= 2
MAN= m4.1
.include <bsd.prog.mk>
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c
index 2ba45f2..d67b0ce 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -279,7 +279,7 @@ add_sub(n, string, re, pm)
regmatch_t *pm;
{
if (n > re->re_nsub)
- warnx("No subexpression %u", n);
+ warnx("No subexpression %zu", n);
/* Subexpressions that did not match are
* not an error. */
else if (pm[n].rm_so != -1 &&
OpenPOWER on IntegriCloud