To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/repeat.c (1 of 93 files). Show all
Unified · Split
| @@ -33,7 +33,7 @@ typedef struct repeatstuff { · 32 unmodified lines | ||
| 33 | 33 | int repeats; |
| 34 | 34 | } *repeat_t; |
| 35 | 35 | |
| 36 | −int st_repeat_getopts(eff_t effp, int n, char **argv) | |
| 36 | +static int st_repeat_getopts(eff_t effp, int n, char **argv) | |
| 37 | 37 | { |
| 38 | 38 | repeat_t repeat = (repeat_t)effp->priv; |
| 39 | 39 | |
| @@ -55,7 +55,7 @@ int st_repeat_getopts(eff_t effp, int n, char **argv) · 15 unmodified lines | ||
| 55 | 55 | return (ST_SUCCESS); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | −int st_repeat_start(eff_t effp) | |
| 58 | +static int st_repeat_start(eff_t effp) | |
| 59 | 59 | { |
| 60 | 60 | repeat_t repeat = (repeat_t)effp->priv; |
| 61 | 61 | |
| @@ -69,7 +69,7 @@ int st_repeat_start(eff_t effp) · 7 unmodified lines | ||
| 69 | 69 | return (ST_SUCCESS); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | −int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 72 | +static int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf UNUSED, | |
| 73 | 73 | st_size_t *isamp, st_size_t *osamp) |
| 74 | 74 | { |
| 75 | 75 | repeat_t repeat = (repeat_t)effp->priv; |
| @@ -85,7 +85,7 @@ int st_repeat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 9 unmodified lines | ||
| 85 | 85 | return (ST_SUCCESS); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | −int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 88 | +static int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 89 | 89 | { |
| 90 | 90 | size_t read = 0; |
| 91 | 91 | st_sample_t *buf; |
| @@ -187,7 +187,7 @@ int st_repeat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 95 unmodified lines | ||
| 187 | 187 | return ST_SUCCESS; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | −int st_repeat_stop(eff_t effp) | |
| 190 | +static int st_repeat_stop(eff_t effp) | |
| 191 | 191 | { |
| 192 | 192 | repeat_t repeat = (repeat_t)effp->priv; |
| 193 | 193 | |