To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/echo.c (1 of 93 files). Show all
Unified · Split
| @@ -82,7 +82,7 @@ typedef struct echostuff { · 81 unmodified lines | ||
| 82 | 82 | /* |
| 83 | 83 | * Process options |
| 84 | 84 | */ |
| 85 | −int st_echo_getopts(eff_t effp, int n, char **argv) | |
| 85 | +static int st_echo_getopts(eff_t effp, int n, char **argv) | |
| 86 | 86 | { |
| 87 | 87 | echo_t echo = (echo_t) effp->priv; |
| 88 | 88 | int i; |
| @@ -113,7 +113,7 @@ int st_echo_getopts(eff_t effp, int n, char **argv) · 24 unmodified lines | ||
| 113 | 113 | /* |
| 114 | 114 | * Prepare for processing. |
| 115 | 115 | */ |
| 116 | −int st_echo_start(eff_t effp) | |
| 116 | +static int st_echo_start(eff_t effp) | |
| 117 | 117 | { |
| 118 | 118 | echo_t echo = (echo_t) effp->priv; |
| 119 | 119 | int i; |
| @@ -143,7 +143,7 @@ int st_echo_start(eff_t effp) · 23 unmodified lines | ||
| 143 | 143 | st_fail("echo: delay must be positive!"); |
| 144 | 144 | return (ST_EOF); |
| 145 | 145 | } |
| 146 | − if ( echo->samples[i] > DELAY_BUFSIZ ) | |
| 146 | + if ( echo->samples[i] > (st_ssize_t)DELAY_BUFSIZ ) | |
| 147 | 147 | { |
| 148 | 148 | st_fail("echo: delay must be less than %g seconds!", |
| 149 | 149 | DELAY_BUFSIZ / (float) effp->ininfo.rate ); |
| @@ -185,7 +185,7 @@ int st_echo_start(eff_t effp) · 35 unmodified lines | ||
| 185 | 185 | * Processed signed long samples from ibuf to obuf. |
| 186 | 186 | * Return number of samples processed. |
| 187 | 187 | */ |
| 188 | −int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 188 | +static int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 189 | 189 | st_size_t *isamp, st_size_t *osamp) |
| 190 | 190 | { |
| 191 | 191 | echo_t echo = (echo_t) effp->priv; |
| @@ -222,7 +222,7 @@ int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 30 unmodified lines | ||
| 222 | 222 | /* |
| 223 | 223 | * Drain out reverb lines. |
| 224 | 224 | */ |
| 225 | −int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 225 | +static int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 226 | 226 | { |
| 227 | 227 | echo_t echo = (echo_t) effp->priv; |
| 228 | 228 | double d_in, d_out; |
| @@ -262,7 +262,7 @@ int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 33 unmodified lines | ||
| 262 | 262 | /* |
| 263 | 263 | * Clean up reverb effect. |
| 264 | 264 | */ |
| 265 | −int st_echo_stop(eff_t effp) | |
| 265 | +static int st_echo_stop(eff_t effp) | |
| 266 | 266 | { |
| 267 | 267 | echo_t echo = (echo_t) effp->priv; |
| 268 | 268 | |