From ba7d2c8e48711cf089c35745234d71574bc7ae7f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 21 Jun 2026 22:04:49 +0200 Subject: fixed some warnings when building with `-Wall` --- regcomp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'regcomp.c') diff --git a/regcomp.c b/regcomp.c index c00e19e..25b1a85 100644 --- a/regcomp.c +++ b/regcomp.c @@ -83,9 +83,11 @@ static chr lexdigits(struct vars *, int, int, int); static int brenext(struct vars *, pchr); static void skip(struct vars *); static chr newline(NOPARMS); +#if 0 #ifdef REG_DEBUG static const chr *ch(NOPARMS); #endif +#endif static pchr chrnamed(struct vars *, const chr *, const chr *, pchr); /* === regc_color.c === */ static void initcm(struct vars *, struct colormap *); @@ -2039,7 +2041,7 @@ dump( } fprintf(f, "\n\n\n========= DUMP ==========\n"); - fprintf(f, "nsub %d, info 0%lo, csize %d, ntree %d\n", + fprintf(f, "nsub %zu, info 0%lo, csize %d, ntree %d\n", re->re_nsub, re->re_info, re->re_csize, g->ntree); dumpcolors(&g->cmap, f); -- cgit v1.2.3