aboutsummaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-21 22:04:49 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-21 22:05:37 +0200
commitba7d2c8e48711cf089c35745234d71574bc7ae7f (patch)
treee75545990bd406979601f4ccfc6531e621844444 /regcomp.c
parent13f5fd77bbc528862f295f9e7196f3ff709d185a (diff)
downloadterex-ba7d2c8e48711cf089c35745234d71574bc7ae7f.tar.gz
fixed some warnings when building with `-Wall`
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 3 insertions, 1 deletions
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);