From 1f389ba56131238fd101fda7fdf73304f0d84932 Mon Sep 17 00:00:00 2001 Message-Id: <1f389ba56131238fd101fda7fdf73304f0d84932.1715241788.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 25 May 2014 14:40:10 +0100 Subject: [PATCH] Placate gcc -flto Organization: Straylight/Edgeware From: Richard Kettlewell I don't think either of these are real bugs, but it keeps the compiler happy. --- lib/trackdb.c | 1 + libtests/t-words.c | 1 + 2 files changed, 2 insertions(+) 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) { -- [mdw]