From: Richard Kettlewell Date: Sun, 25 May 2014 13:40:10 +0000 (+0100) Subject: Placate gcc -flto X-Git-Tag: 5.2~83 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/1f389ba56131238fd101fda7fdf73304f0d84932 Placate gcc -flto I don't think either of these are real bugs, but it keeps the compiler happy. --- diff --git a/lib/trackdb.c b/lib/trackdb.c index 7fbdeb5..7d50e2e 100644 --- a/lib/trackdb.c +++ b/lib/trackdb.c @@ -1182,6 +1182,7 @@ static int compute_alias(char **aliasp, } return 0; default: + *aliasp = 0; return err; } } diff --git a/libtests/t-words.c b/libtests/t-words.c index af9468c..a8efde9 100644 --- a/libtests/t-words.c +++ b/libtests/t-words.c @@ -54,6 +54,7 @@ static void test_words(void) { for(t = 0; t < NWTEST; ++t) { char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot, 0); + assert(got != NULL); for(nexpect = 0; wtest[t].expect[nexpect]; ++nexpect) ; if(nexpect == ngot) {