aboutsummaryrefslogtreecommitdiffstats
path: root/regexp/jimregexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexp/jimregexp.c')
-rw-r--r--regexp/jimregexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regexp/jimregexp.c b/regexp/jimregexp.c
index 4fdced199..2ea3a7d13 100644
--- a/regexp/jimregexp.c
+++ b/regexp/jimregexp.c
@@ -61,6 +61,8 @@
#include "jimregexp.h"
#include "utf8.h"
+#define UCHAR(c) ((unsigned char)(c))
+
/* An arbitrary limit, but this seems enough. Must be less than 1000. */
#define REG_MAX_PAREN 100
@@ -1878,6 +1880,8 @@ size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_s
};
const char *err;
+ (void)preg;
+
if (errcode < 0 || errcode >= REG_ERR_NUM) {
err = "Bad error code";
}