summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-06-11 04:54:02 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-11 04:54:02 -0700
commit66b8206b64386d67152a050ab5a998c5ac8e02cf (patch)
tree7ca519bd577ed34148817d676d3a2148c3c9c75a /include
parent6406b41a17722a0c7d92efc6e507c2f35d9cb883 (diff)
Fix various sound compiler warnings (and outright bugs
on non-x86 architectures)
Diffstat (limited to 'include')
-rw-r--r--include/sound/core.h2
-rw-r--r--include/sound/pcm_params.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index 028cfe4cd94c..9b2942df961a 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -345,7 +345,7 @@ void snd_printd(const char *format, ...);
#else /* !CONFIG_SND_DEBUG */
#define snd_printd(fmt, args...) /* nothing */
-#define snd_assert(expr, args...) /* nothing */
+#define snd_assert(expr, args...) (void)(expr)
#define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0)
#endif /* CONFIG_SND_DEBUG */
diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h
index 769d8738f2fd..4a6f827f218f 100644
--- a/include/sound/pcm_params.h
+++ b/include/sound/pcm_params.h
@@ -38,7 +38,7 @@ extern int _snd_pcm_hw_param_set(snd_pcm_hw_params_t *params,
/* To share the same code we have alsa-lib */
#define snd_mask_bits(mask) (*(mask))
#define INLINE static inline
-#define assert(a)
+#define assert(a) (void)(a)
INLINE unsigned int ld2(u_int32_t v)
{