[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a -Wunused-but-set-variable instance in master



commit 8e09f7cf107056f99e47029ccf9a9403ef45bc59
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sat May 28 01:57:38 2011 -0400

    Fix a -Wunused-but-set-variable instance in master
---
 src/common/util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index 7177651..ad321ee 100644
--- a/src/common/util.c
+++ b/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 */
   }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits