]> granicus.if.org Git - libevent/commitdiff
r14952@tombo: nickm | 2007-11-25 14:47:45 -0500
authorNick Mathewson <nickm@torproject.org>
Sun, 25 Nov 2007 21:32:15 +0000 (21:32 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 25 Nov 2007 21:32:15 +0000 (21:32 +0000)
 Fix an unused variable warning.

svn:r549

signal.c

index ae07850d53c7f5d343b5e4f2250969309f52bac9..90f915e1e49b5ad6ed288248b9d7c502c3938a4c 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -72,12 +72,12 @@ static void
 evsignal_cb(int fd, short what, void *arg)
 {
        static char signals[100];
-       struct event *ev = arg;
 #ifdef WIN32
        SSIZE_T n;
 #else
        ssize_t n;
 #endif
+        (void)arg; /* Suppress "unused variable" warning. */
 
        n = recv(fd, signals, sizeof(signals), 0);
        if (n == -1)