shut up new gcc 6 warnings

This commit is contained in:
leitner
2016-04-27 14:07:49 +00:00
parent 05e4dcc94a
commit d26b8082d8
26 changed files with 173 additions and 109 deletions

View File

@@ -6,7 +6,8 @@ extern int stralloc_diff(const stralloc* a,const stralloc* b) {
register size_t i;
register int j;
for (i=0;;++i) {
if (i==a->len) return i==b->len?0:-1; if (i==b->len) return 1;
if (i==a->len) return i==b->len?0:-1;
if (i==b->len) return 1;
if ((j=((unsigned char)(a->s[i])-(unsigned char)(b->s[i])))) return j;
}
return j;