To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/stat.c (1 of 93 files). Show all
Unified · Split
| @@ -45,7 +45,7 @@ typedef struct statstuff { · 44 unmodified lines | ||
| 45 | 45 | /* |
| 46 | 46 | * Process options |
| 47 | 47 | */ |
| 48 | −int st_stat_getopts(eff_t effp, int n, char **argv) | |
| 48 | +static int st_stat_getopts(eff_t effp, int n, char **argv) | |
| 49 | 49 | { |
| 50 | 50 | stat_t stat = (stat_t) effp->priv; |
| 51 | 51 | |
| @@ -96,7 +96,7 @@ int st_stat_getopts(eff_t effp, int n, char **argv) · 44 unmodified lines | ||
| 96 | 96 | /* |
| 97 | 97 | * Prepare processing. |
| 98 | 98 | */ |
| 99 | −int st_stat_start(eff_t effp) | |
| 99 | +static int st_stat_start(eff_t effp) | |
| 100 | 100 | { |
| 101 | 101 | stat_t stat = (stat_t) effp->priv; |
| 102 | 102 | int i; |
| @@ -152,7 +152,7 @@ static void print_power_spectrum(unsigned samples, float rate, float *re_in, flo · 49 unmodified lines | ||
| 152 | 152 | * Return number of samples processed. |
| 153 | 153 | */ |
| 154 | 154 | |
| 155 | −int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 155 | +static int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 156 | 156 | st_size_t *isamp, st_size_t *osamp) |
| 157 | 157 | { |
| 158 | 158 | stat_t stat = (stat_t) effp->priv; |
| @@ -231,7 +231,7 @@ int st_stat_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 72 unmodified lines | ||
| 231 | 231 | /* |
| 232 | 232 | * Process tail of input samples. |
| 233 | 233 | */ |
| 234 | −int st_stat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 234 | +static int st_stat_drain(eff_t effp, st_sample_t *obuf UNUSED, st_size_t *osamp) | |
| 235 | 235 | { |
| 236 | 236 | stat_t stat = (stat_t) effp->priv; |
| 237 | 237 | |
| @@ -256,7 +256,7 @@ int st_stat_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 18 unmodified lines | ||
| 256 | 256 | * Do anything required when you stop reading samples. |
| 257 | 257 | * Don't close input file! |
| 258 | 258 | */ |
| 259 | −int st_stat_stop(eff_t effp) | |
| 259 | +static int st_stat_stop(eff_t effp) | |
| 260 | 260 | { |
| 261 | 261 | stat_t stat = (stat_t) effp->priv; |
| 262 | 262 | double amp, scale, rms = 0, freq; |