clang scan-build warnings

This commit is contained in:
Caolán McNamara 2014-06-26 13:45:51 +00:00
parent 9db38a4ba7
commit 81b1d7eaf4
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2014-06-26 Caolán McNamara <caolán at redhat dot com>:
* clang scan-build warnings
2013-03-18 László Németh <nemeth at numbertext dot org>: 2013-03-18 László Németh <nemeth at numbertext dot org>:
* Makefile.am, Makefile.in: set -version-info * Makefile.am, Makefile.in: set -version-info

View File

@ -360,7 +360,7 @@ void hnj_hyphen_load_line(char * buf, HyphenDict * dict, HashTab * hashtab) {
} }
/* now, put in the prefix transitions */ /* now, put in the prefix transitions */
for (; found < 0 ;j--) for (; found < 0 && j > 0; --j)
{ {
last_state = state_num; last_state = state_num;
ch = word[j - 1]; ch = word[j - 1];

View File

@ -200,7 +200,6 @@ int main(int argc, const char* argv[]) {
if (c<'0' || c>'9') pat[j++]=c; if (c<'0' || c>'9') pat[j++]=c;
} }
pat[j]=0; pat[j]=0;
p = patterns;
pattab_key[patterns] = pat; pattab_key[patterns] = pat;
pattab_val[patterns++] = org; pattab_val[patterns++] = org;
if (patterns>MAXPATHS) die("to many base patterns"); if (patterns>MAXPATHS) die("to many base patterns");