swresample/dither_template: Do not define macro functions to nothing
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 May 2015 23:07:30 +0000 (01:07 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 May 2015 23:07:30 +0000 (01:07 +0200)
This avoids potential warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/dither_template.c

index 4af7312..1e35dfb 100644 (file)
@@ -2,12 +2,12 @@
 #if defined(TEMPLATE_DITHER_DBL)
 #    define RENAME(N) N ## _double
 #    define DELEM  double
-#    define CLIP(v)
+#    define CLIP(v) while(0)
 
 #elif defined(TEMPLATE_DITHER_FLT)
 #    define RENAME(N) N ## _float
 #    define DELEM  float
-#    define CLIP(v)
+#    define CLIP(v) while(0)
 
 #elif defined(TEMPLATE_DITHER_S32)
 #    define RENAME(N) N ## _int32