commit 90e07ab338cd59caeaeb31a3d207bb34d433b8ab Author: Sharif Olorin sio@tesser.org Date: Sat May 30 06:03:50 2015 +0000
Fix return-type gcc warning
find_dl_schedule_and_len caused gcc to spit up with -Werror.
Signed-off-by: Sharif Olorin sio@tesser.org --- src/or/directory.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/or/directory.c b/src/or/directory.c index 9fe3052..549d95a 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 <b>dls</b> has failed with HTTP status
tor-commits@lists.torproject.org