mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix "value computed is not used" compile warnings with gcc-4.1
@ 2006-01-13 20:16 Takashi Iwai
  0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2006-01-13 20:16 UTC (permalink / raw)
  To: linux-kernel

[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@suse.de>

---
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()

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-13 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-13 20:16 [PATCH] Fix "value computed is not used" compile warnings with gcc-4.1 Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®