about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-01-31 23:10:50 +0000
committerEric Wong <normalperson@yhbt.net>2013-01-31 23:10:50 +0000
commit7abd078c4f7e61e87f9394c6662be027fe0253b2 (patch)
tree05bcd9a94afc36df3040c2efc6ab9ec0607e55ae
parentc0931fd23e065521237530cd6f9f6068f259e4e1 (diff)
downloadcmogstored-7abd078c4f7e61e87f9394c6662be027fe0253b2.tar.gz
Noticed with gcc 4.7.2 in Debian testing (4.7.2-5)
-rw-r--r--ioutil.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ioutil.c b/ioutil.c
index b31dbb6..88050a5 100644
--- a/ioutil.c
+++ b/ioutil.c
@@ -138,9 +138,7 @@ void mog_iou_write(dev_t st_dev, char buf[MOG_IOUTIL_LEN])
 /* marks the given device as in-use */
 void mog_iou_active(dev_t st_dev)
 {
-        struct ioutil *iou;
-
         CHECK(int, 0, pthread_mutex_lock(&iou_lock));
-        iou = iou_vivify(st_dev);
+        (void)iou_vivify(st_dev);
         CHECK(int, 0, pthread_mutex_unlock(&iou_lock));
 }