aboutsummaryrefslogtreecommitdiffhomepage
path: root/xutil.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-25 15:39:53 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-25 15:52:14 -0700
commitcc48812cb55e046a77ce1b4aad33566acc5fbd47 (patch)
tree4f66f6c647f0ae7ac5eec68732bc9b6706b3beaf /xutil.c
parent067c547b236133cacbe7192b99bcd5487a08f7c8 (diff)
Add -Wextra and fix warnings.
When adding -Wextra we also add -Wno-ununsed-parameters since that function means well enough, but is really annoying in practice. So the warnings we fix here are basically all comparsions between signed and unsigned values.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xutil.c b/xutil.c
index 26761d78..6fa5eb0d 100644
--- a/xutil.c
+++ b/xutil.c
@@ -113,7 +113,8 @@ int
xregexec (const regex_t *preg, const char *string,
size_t nmatch, regmatch_t pmatch[], int eflags)
{
- int i, rerr;
+ unsigned int i;
+ int rerr;
rerr = regexec (preg, string, nmatch, pmatch, eflags);
if (rerr)