Skip to contentSkip to conversation

ALSA compiler warnings fixes

PATCH Giacomo Catenazzi 1 participant 1 message Nov 19, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line

+#define snd_power_unlock(card) do { (void)(card); } while (0)

Why do we use in kernel:

	do { (void)(foobar); } while (0)
instead of the simpler and normally used in std files (e.g. assert.h):
	((void)(foobar),0)

?

The "do while(0)" is used for multi-statment macros, not the case for void statment!

ciao
giacomo