shithub: sox

Download patch

ref: e103e2d61e1d00954587dea310c95bd411cc1b06
parent: 13428380a09bb6b172dadb6a522b0330f86d928e
author: Ulrich Klauer <ulrich@chirlu.de>
date: Sun Jan 22 20:10:03 EST 2012

Use UNUSED attribute instead of a void cast

--- a/src/effects.c
+++ b/src/effects.c
@@ -33,12 +33,11 @@
 }
 
 /* Pass through samples verbatim */
-int lsx_flow_copy(sox_effect_t * effp, const sox_sample_t * ibuf,
+int lsx_flow_copy(sox_effect_t * effp UNUSED, const sox_sample_t * ibuf,
     sox_sample_t * obuf, size_t * isamp, size_t * osamp)
 {
   *isamp = *osamp = min(*isamp, *osamp);
   memcpy(obuf, ibuf, *isamp * sizeof(*obuf));
-  (void)effp;
   return SOX_SUCCESS;
 }