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
This commit is contained in:
parent
8cd319f71a
commit
82130df48c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95164
@ -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>
|
||||
|
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user