To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/speed.c (1 of 93 files). Show all
Unified · Split
| @@ -76,7 +76,7 @@ static double cub( · 75 unmodified lines | ||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /* get options. */ |
| 79 | −int st_speed_getopts(eff_t effp, int n, char **argv) | |
| 79 | +static int st_speed_getopts(eff_t effp, int n, char **argv) | |
| 80 | 80 | { |
| 81 | 81 | speed_t speed = (speed_t) effp->priv; |
| 82 | 82 | int cent = 0; |
| @@ -106,7 +106,7 @@ int st_speed_getopts(eff_t effp, int n, char **argv) · 23 unmodified lines | ||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /* start processing. */ |
| 109 | −int st_speed_start(eff_t effp) | |
| 109 | +static int st_speed_start(eff_t effp) | |
| 110 | 110 | { |
| 111 | 111 | speed_t speed = (speed_t) effp->priv; |
| 112 | 112 | |
| @@ -192,7 +192,7 @@ static st_size_t compute(eff_t effp, speed_t speed, st_sample_t *obuf, st_size_t · 79 unmodified lines | ||
| 192 | 192 | |
| 193 | 193 | /* handle a flow. |
| 194 | 194 | */ |
| 195 | −int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 195 | +static int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | |
| 196 | 196 | st_size_t *isamp, st_size_t *osamp) |
| 197 | 197 | { |
| 198 | 198 | speed_t speed; |
| @@ -237,7 +237,7 @@ int st_speed_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 38 unmodified lines | ||
| 237 | 237 | |
| 238 | 238 | /* end of stuff. |
| 239 | 239 | */ |
| 240 | −int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 240 | +static int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) | |
| 241 | 241 | { |
| 242 | 242 | speed_t speed = (speed_t) effp->priv; |
| 243 | 243 | st_size_t i, oindex; |
| @@ -274,7 +274,7 @@ int st_speed_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 30 unmodified lines | ||
| 274 | 274 | |
| 275 | 275 | /* stop processing. report overflows. |
| 276 | 276 | */ |
| 277 | −int st_speed_stop(eff_t effp) | |
| 277 | +static int st_speed_stop(eff_t effp) | |
| 278 | 278 | { |
| 279 | 279 | speed_t speed = (speed_t) effp->priv; |
| 280 | 280 | |