[PATCH] Fix "value computed is not used" compile warnings with gcc-4.1

From: Takashi Iwai
Date: Fri Jan 13 2006 - 15:08:49 EST


[PATCH] Fix "value computed is not used" compile warnings with gcc-4.1

The patch fixes gcc4.1 compile warnings "value computed is not used"
with set_current_state() and set_task_state() on i386/SMP.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>

---
diff --git a/include/asm-i386/system.h b/include/asm-i386/system.h
--- a/include/asm-i386/system.h
+++ b/include/asm-i386/system.h
@@ -507,7 +507,7 @@ struct alt_instr {
#define smp_rmb() rmb()
#define smp_wmb() wmb()
#define smp_read_barrier_depends() read_barrier_depends()
-#define set_mb(var, value) do { xchg(&var, value); } while (0)
+#define set_mb(var, value) do { (void) xchg(&var, value); } while (0)
#else
#define smp_mb() barrier()
#define smp_rmb() barrier()
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/