]> pd.if.org Git - nbds/blobdiff - test/map_test2.c
fix compiler warnings/error under gcc 4.1 and 4.2
[nbds] / test / map_test2.c
index b660c1ab94e1030ad694566ddf264c31cafa8111..b239cfc190cac1b0e7c4dc28b684cc8b6f8d9713 100644 (file)
@@ -138,7 +138,7 @@ void *add_remove_worker (void *arg) {
     int d = wd->id;
     int iters = 10000;
 
     int d = wd->id;
     int iters = 10000;
 
-    SYNC_ADD(wd->wait, -1);
+    (void)SYNC_ADD(wd->wait, -1);
     do { } while (*wd->wait); // wait for all workers to be ready
 
     map_key_t key;
     do { } while (*wd->wait); // wait for all workers to be ready
 
     map_key_t key;