Procházet zdrojové kódy

Fix a -Wunused-but-set-variable instance in master

Nick Mathewson před 13 roky
rodič
revize
8e09f7cf10
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/common/util.c

+ 2 - 0
src/common/util.c

@@ -3084,6 +3084,8 @@ tor_spawn_background(const char *const filename, int *stdout_read,
     nbytes = write(STDOUT_FILENO, error_message, error_message_length);
     nbytes = write(STDOUT_FILENO, hex_errno, sizeof(hex_errno));
 
+    (void) nbytes;
+
     _exit(255);
     return -1; /* Never reached, but avoids compiler warning */
   }