Sfoglia il codice sorgente

Fix a warning when building with --disable-curve25519

It appears that the code for 7291 gave an unused-value warning when
built with --disable-curve25519.
Nick Mathewson 11 anni fa
parent
commit
7cde094fd5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/or/onion.c

+ 2 - 0
src/or/onion.c

@@ -82,6 +82,8 @@ have_room_for_onionskin(uint16_t type)
   if (type == ONION_HANDSHAKE_TYPE_TAP &&
       tap_usec / 1000 > (uint64_t)options->MaxOnionQueueDelay * 2 / 3)
     return 0;
+#else
+  (void) type;
 #endif
 
   return 1;