From: Sharif Olorin Date: Sat, 30 May 2015 06:03:50 +0000 (+0000) Subject: Fix return-type gcc warning X-Git-Tag: tor-0.2.7.2-alpha~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90e07ab338cd59caeaeb31a3d207bb34d433b8ab;p=thirdparty%2Ftor.git Fix return-type gcc warning find_dl_schedule_and_len caused gcc to spit up with -Werror. Signed-off-by: Sharif Olorin --- diff --git a/src/or/directory.c b/src/or/directory.c index 9fe3052774..549d95a13c 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3479,6 +3479,9 @@ find_dl_schedule_and_len(download_status_t *dls, int server) default: tor_assert(0); } + + /* Impossible, but gcc will fail with -Werror without a `return`. */ + return NULL; } /** Called when an attempt to download dls has failed with HTTP status