From a45cdf4b0e0f326bc7aea046ed418dd033fce328 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 23 Jan 2009 18:12:04 -0800 Subject: [PATCH] makekeys: Fix warning about not returning from function If we've gotten through the for loop in the alias functions, then we don't have a match. --- src/makekeys/makekeys.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/makekeys/makekeys.c b/src/makekeys/makekeys.c index 8fa6dda..02b1efe 100644 --- a/src/makekeys/makekeys.c +++ b/src/makekeys/makekeys.c @@ -116,11 +116,9 @@ get_keysym_alias(const char *buf, char *key, int index) } /* Didn't find a match */ - if (i < 0) { - fprintf(stderr, "can't find matching definition %s for keysym %s\n", - alias, key); - return -1; - } + fprintf(stderr, "can't find matching definition %s for keysym %s\n", + alias, key); + return -1; } static int @@ -166,11 +164,9 @@ get_xf86_keysym_alias(const char *buf, char *key, size_t len, int index) } /* Didn't find a match */ - if (i < 0) { - fprintf(stderr, "can't find matching definition %s for keysym %s\n", - alias, key); - return -1; - } + fprintf(stderr, "can't find matching definition %s for keysym %s\n", + alias, key); + return -1; } int -- 2.7.4