To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/copy.c (1 of 93 files). Show all
Unified · Split
| @@ -19,7 +19,7 @@ static st_effect_t st_copy_effect; · 18 unmodified lines | ||
| 19 | 19 | /* |
| 20 | 20 | * Process options |
| 21 | 21 | */ |
| 22 | −int st_copy_getopts(eff_t effp, int n, char **argv) | |
| 22 | +static int st_copy_getopts(eff_t effp UNUSED, int n, char **argv UNUSED) | |
| 23 | 23 | { |
| 24 | 24 | if (n) |
| 25 | 25 | { |
| @@ -32,11 +32,11 @@ int st_copy_getopts(eff_t effp, int n, char **argv) · 6 unmodified lines | ||
| 32 | 32 | /* |
| 33 | 33 | * Start processing |
| 34 | 34 | */ |
| 35 | −int st_copy_start(eff_t effp) | |
| 35 | +static int st_copy_start(eff_t effp UNUSED) | |
| 36 | 36 | { |
| 37 | 37 | /* nothing to do */ |
| 38 | 38 | /* stuff data into delaying effects here */ |
| 39 | − return (ST_SUCCESS); | |
| 39 | + return (ST_SUCCESS); | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /* |
| @@ -45,7 +45,7 @@ int st_copy_start(eff_t effp) · 2 unmodified lines | ||
| 45 | 45 | * Place in buf[]. |
| 46 | 46 | * Return number of samples read. |
| 47 | 47 | */ |
| 48 | −int st_copy_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 48 | +static int st_copy_flow(eff_t effp UNUSED, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 49 | 49 | st_size_t *isamp, st_size_t *osamp) |
| 50 | 50 | { |
| 51 | 51 | int done; |
| @@ -56,16 +56,6 @@ int st_copy_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 4 unmodified lines | ||
| 56 | 56 | return (ST_SUCCESS); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | −/* | |
| 60 | − * Do anything required when you stop reading samples. | |
| 61 | − * Don't close input file! | |
| 62 | − */ | |
| 63 | −int st_copy_stop(eff_t effp) | |
| 64 | −{ | |
| 65 | − /* nothing to do */ | |
| 66 | − return (ST_SUCCESS); | |
| 67 | −} | |
| 68 | − | |
| 69 | 59 | static st_effect_t st_copy_effect = { |
| 70 | 60 | "copy", |
| 71 | 61 | "Usage: Copy effect takes no options", |