To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/echos.c (1 of 93 files). Show all
Unified · Split
| @@ -52,7 +52,7 @@ · 51 unmodified lines | ||
| 52 | 52 | |
| 53 | 53 | static st_effect_t st_echos_effect; |
| 54 | 54 | |
| 55 | −#define DELAY_BUFSIZ ( 50L * ST_MAXRATE ) | |
| 55 | +#define DELAY_BUFSIZ ( 50 * ST_MAXRATE ) | |
| 56 | 56 | #define MAX_ECHOS 7 /* 24 bit x ( 1 + MAX_ECHOS ) = */ |
| 57 | 57 | /* 24 bit x 8 = 32 bit !!! */ |
| 58 | 58 | |
| @@ -72,7 +72,7 @@ typedef struct echosstuff { · 13 unmodified lines | ||
| 72 | 72 | /* |
| 73 | 73 | * Process options |
| 74 | 74 | */ |
| 75 | −int st_echos_getopts(eff_t effp, int n, char **argv) | |
| 75 | +static int st_echos_getopts(eff_t effp, int n, char **argv) | |
| 76 | 76 | { |
| 77 | 77 | echos_t echos = (echos_t) effp->priv; |
| 78 | 78 | int i; |
| @@ -107,7 +107,7 @@ int st_echos_getopts(eff_t effp, int n, char **argv) · 28 unmodified lines | ||
| 107 | 107 | /* |
| 108 | 108 | * Prepare for processing. |
| 109 | 109 | */ |
| 110 | −int st_echos_start(eff_t effp) | |
| 110 | +static int st_echos_start(eff_t effp) | |
| 111 | 111 | { |
| 112 | 112 | echos_t echos = (echos_t) effp->priv; |
| 113 | 113 | int i; |
| @@ -136,7 +136,7 @@ int st_echos_start(eff_t effp) · 22 unmodified lines | ||
| 136 | 136 | st_fail("echos: delay must be positive!"); |
| 137 | 137 | return (ST_EOF); |
| 138 | 138 | } |
| 139 | − if ( echos->samples[i] > DELAY_BUFSIZ ) | |
| 139 | + if ( echos->samples[i] > (st_ssize_t)DELAY_BUFSIZ ) | |
| 140 | 140 | { |
| 141 | 141 | st_fail("echos: delay must be less than %g seconds!", |
| 142 | 142 | DELAY_BUFSIZ / (float) effp->ininfo.rate ); |
| @@ -177,7 +177,7 @@ int st_echos_start(eff_t effp) · 34 unmodified lines | ||
| 177 | 177 | * Processed signed long samples from ibuf to obuf. |
| 178 | 178 | * Return number of samples processed. |
| 179 | 179 | */ |
| 180 | −int st_echos_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 180 | +static int st_echos_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 181 | 181 | st_size_t *isamp, st_size_t *osamp) |
| 182 | 182 | { |
| 183 | 183 | echos_t echos = (echos_t) effp->priv; |
| @@ -220,7 +220,7 @@ int st_echos_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 36 unmodified lines | ||
| 220 | 220 | /* |
| 221 | 221 | * Drain out reverb lines. |
| 222 | 222 | */ |
| 223 | −int st_echos_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 223 | +static int st_echos_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 224 | 224 | { |
| 225 | 225 | echos_t echos = (echos_t) effp->priv; |
| 226 | 226 | double d_in, d_out; |
| @@ -266,7 +266,7 @@ int st_echos_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 39 unmodified lines | ||
| 266 | 266 | /* |
| 267 | 267 | * Clean up echos effect. |
| 268 | 268 | */ |
| 269 | −int st_echos_stop(eff_t effp) | |
| 269 | +static int st_echos_stop(eff_t effp) | |
| 270 | 270 | { |
| 271 | 271 | echos_t echos = (echos_t) effp->priv; |
| 272 | 272 | |