From: Dan Nicholson Date: Sat, 24 Jan 2009 02:12:04 +0000 (-0800) Subject: makekeys: Fix warning about not returning from function X-Git-Tag: xkbcommon-0.2.0~994 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a45cdf4b0e0f326bc7aea046ed418dd033fce328;p=platform%2Fupstream%2Flibxkbcommon.git 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. --- 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