diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-03-28 10:04:53 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-28 10:04:53 +0200 |
commit | aa39f588a3629bee4981e74c3e4250db6129afe2 (patch) | |
tree | 79a3a3811225ddef8f1ae6a53e4d0721329298e2 | |
parent | 855eadf304b7492d0a6db4cbfa1ad74efc05644e (diff) | |
download | hda-emu-aa39f588a3629bee4981e74c3e4250db6129afe2.tar.gz |
Fix a compiler warning about WARN_ON()
Our WARN_ON() macro wrapper makes compiler unhappy when a pointer is
passed to the argument:
warning: passing argument 1 of ‘_WARN_ON’ makes integer from pointer without a cast [-Wint-conversion]
Fix it up.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/wrapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wrapper.h b/include/wrapper.h index 6fa6753..24ba32b 100644 --- a/include/wrapper.h +++ b/include/wrapper.h @@ -198,7 +198,7 @@ static inline int _WARN_ON(int cond, const char *func, int line) return cond; } -#define WARN_ON(cond) _WARN_ON(cond, __func__, __LINE__) +#define WARN_ON(cond) _WARN_ON(!!(cond), __func__, __LINE__) #define simple_strtoul strtoul #define simple_strtol strtol |