aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-16 00:06:30 +0000
committerYang Tse <yangsita@gmail.com>2009-06-16 00:06:30 +0000
commitafe06d15639d9add4c62880a3020c3707fdff9f9 (patch)
treed939faafc396350afe60c6dc419d671936c6f840
parentc40365e9b69c33edf9c8cc8fc624d43ad5772017 (diff)
fix compiler warning
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 91827c52f..858910828 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3241,6 +3241,9 @@ static void set_nonblocking(struct Configurable *config, int fd)
flags = fcntl(fd, F_SETFL, flags | O_NONBLOCK);
else
warnf(config, "fcntl failed on fd=%d: %s\n", fd, strerror(errno));
+#else
+ (void) config;
+ (void) fd;
#endif
}