]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix return-type gcc warning
authorSharif Olorin <sio@tesser.org>
Sat, 30 May 2015 06:03:50 +0000 (06:03 +0000)
committerSharif Olorin <sio@tesser.org>
Sat, 30 May 2015 06:03:50 +0000 (06:03 +0000)
find_dl_schedule_and_len caused gcc to spit up with -Werror.

Signed-off-by: Sharif Olorin <sio@tesser.org>
src/or/directory.c

index 9fe30527744754be7cc2bfc9c1ba6dbf43ae1d7e..549d95a13c0803bfb9b2bd9a124826cfa68bed62 100644 (file)
@@ -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