From 018f2b06ce2e2a44ee6c1379f94db38aaec73d6c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Sep 2020 12:43:28 -0700 Subject: Fixing compiler warnings --- compiler.c | 2 +- vm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler.c b/compiler.c index 8279285..1c0a817 100644 --- a/compiler.c +++ b/compiler.c @@ -101,7 +101,7 @@ vm_op_t *bpeg_simplepattern(const char *str) if (matchchar(&str, '.')) // "..." op->multiline = 1; vm_op_t *till = bpeg_simplepattern(str); - str = str; // Don't advance str, the following pattern will be re-matched. + // Don't advance str, the following pattern will be re-matched. op->op = VM_UPTO; op->len = -1; op->args.pat = till; diff --git a/vm.h b/vm.h index 6d0a1b4..ac0269f 100644 --- a/vm.h +++ b/vm.h @@ -6,6 +6,7 @@ #include #include +#include #include #include "types.h" -- cgit v1.2.3