summaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 13:34:14 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 13:34:14 -0400
commit91ab1cb8c64f8dfe3c7fff03ab7a2a94394d6c50 (patch)
treec5724992e73e45029fe861626635a3c7a4def1ba /src/regex
parent8662fdc44ca56b18bfd7266d27156d858b435973 (diff)
silence warnings
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/regcomp.c4
-rw-r--r--src/regex/regerror.c4
-rw-r--r--src/regex/regexec.c5
-rw-r--r--src/regex/regfree.c2
4 files changed, 14 insertions, 1 deletions
diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c
index 8dc2aa8d..22b565b9 100644
--- a/src/regex/regcomp.c
+++ b/src/regex/regcomp.c
@@ -3,6 +3,9 @@
int regcomp(regex_t * restrict preg, const char * restrict pattern, int cflags)
{
+ (void)preg;
+ (void)pattern;
+ (void)cflags;
return 0;
}
@@ -10,4 +13,3 @@ int regcomp(regex_t * restrict preg, const char * restrict pattern, int cflags)
/*
POSIX(2)
*/
-
diff --git a/src/regex/regerror.c b/src/regex/regerror.c
index 49d7a28e..49e3e011 100644
--- a/src/regex/regerror.c
+++ b/src/regex/regerror.c
@@ -3,6 +3,10 @@
size_t regerror(int errcode, const regex_t * restrict preg, char * restrict errbuf, size_t errbuf_size)
{
+ (void)errcode;
+ (void)preg;
+ (void)errbuf;
+ (void)errbuf_size;
return 0;
}
diff --git a/src/regex/regexec.c b/src/regex/regexec.c
index 1051f732..750da74b 100644
--- a/src/regex/regexec.c
+++ b/src/regex/regexec.c
@@ -3,6 +3,11 @@
int regexec(const regex_t * restrict preg, const char * restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags)
{
+ (void)preg;
+ (void)string;
+ (void)nmatch;
+ (void)pmatch;
+ (void)eflags;
return 0;
}
diff --git a/src/regex/regfree.c b/src/regex/regfree.c
index 34cbb379..1bf6526e 100644
--- a/src/regex/regfree.c
+++ b/src/regex/regfree.c
@@ -1,8 +1,10 @@
#include "sys/types.h"
#include <regex.h>
+#include "stdlib.h"
void regfree(regex_t * preg)
{
+ free(preg);
}
/*