From: Wolfgang Bumiller Date: Wed, 17 Apr 2013 15:58:08 +0000 (+0200) Subject: fix warnings to allow compiling with -O3 X-Git-Tag: before-library~46 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f2a22b8c35470e5a59db42ea346d06480f25b81;p=xonotic%2Fgmqcc.git fix warnings to allow compiling with -O3 --- diff --git a/utf8.c b/utf8.c index 209317b..a10a11a 100644 --- a/utf8.c +++ b/utf8.c @@ -198,7 +198,7 @@ uchar_t u8_getchar(const char *_s, const char **_end) if (!u8_analyze(_s, &st, &ln, &ch, 0x10)) ch = 0; - if (_end) + else if (_end) *_end = _s + st + ln; return ch; } @@ -210,7 +210,7 @@ uchar_t u8_getnchar(const char *_s, const char **_end, size_t _maxlen) if (!u8_analyze(_s, &st, &ln, &ch, _maxlen)) ch = 0; - if (_end) + else if (_end) *_end = _s + st + ln; return ch; }