To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/lowp.c (1 of 93 files). Show all
Unified · Split
| @@ -42,7 +42,7 @@ typedef struct lowpstuff { · 41 unmodified lines | |||
| 42 | /* | 42 | /* |
| 43 | * Process options | 43 | * Process options |
| 44 | */ | 44 | */ |
| 45 | int st_lowp_getopts(eff_t effp, int n, char **argv) | 45 | static int st_lowp_getopts(eff_t effp, int n, char **argv) |
| 46 | { | 46 | { |
| 47 | lowp_t lowp = (lowp_t) effp->priv; | 47 | lowp_t lowp = (lowp_t) effp->priv; |
| 48 | 48 | ||
| @@ -57,7 +57,7 @@ int st_lowp_getopts(eff_t effp, int n, char **argv) · 8 unmodified lines | |||
| 57 | /* | 57 | /* |
| 58 | * Prepare processing. | 58 | * Prepare processing. |
| 59 | */ | 59 | */ |
| 60 | int st_lowp_start(eff_t effp) | 60 | static int st_lowp_start(eff_t effp) |
| 61 | { | 61 | { |
| 62 | lowp_t lowp = (lowp_t) effp->priv; | 62 | lowp_t lowp = (lowp_t) effp->priv; |
| 63 | if (lowp->cutoff > effp->ininfo.rate / 2) | 63 | if (lowp->cutoff > effp->ininfo.rate / 2) |
| @@ -96,7 +96,7 @@ int st_lowp_start(eff_t effp) · 32 unmodified lines | |||
| 96 | * Processed signed long samples from ibuf to obuf. | 96 | * Processed signed long samples from ibuf to obuf. |
| 97 | * Return number of samples processed. | 97 | * Return number of samples processed. |
| 98 | */ | 98 | */ |
| 99 | int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | 99 | static int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, |
| 100 | st_size_t *isamp, st_size_t *osamp) | 100 | st_size_t *isamp, st_size_t *osamp) |
| 101 | { | 101 | { |
| 102 | lowp_t lowp = (lowp_t) effp->priv; | 102 | lowp_t lowp = (lowp_t) effp->priv; |
| @@ -118,16 +118,6 @@ int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 15 unmodified lines | |||
| 118 | return (ST_SUCCESS); | 118 | return (ST_SUCCESS); |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | /* | ||
| 122 | * Do anything required when you stop reading samples. | ||
| 123 | * Don't close input file! | ||
| 124 | */ | ||
| 125 | int st_lowp_stop(eff_t effp) | ||
| 126 | { | ||
| 127 | /* nothing to do */ | ||
| 128 | return (ST_SUCCESS); | ||
| 129 | } | ||
| 130 | |||
| 131 | static st_effect_t st_lowp_effect = { | 121 | static st_effect_t st_lowp_effect = { |
| 132 | "lowp", | 122 | "lowp", |
| 133 | "Usage: lowp cutoff", | 123 | "Usage: lowp cutoff", |
| @@ -136,7 +126,7 @@ static st_effect_t st_lowp_effect = { · 2 unmodified lines | |||
| 136 | st_lowp_start, | 126 | st_lowp_start, |
| 137 | st_lowp_flow, | 127 | st_lowp_flow, |
| 138 | st_effect_nothing_drain, | 128 | st_effect_nothing_drain, |
| 139 | st_lowp_stop | 129 | st_effect_nothing |
| 140 | }; | 130 | }; |
| 141 | 131 | ||
| 142 | const st_effect_t *st_lowp_effect_fn(void) | 132 | const st_effect_t *st_lowp_effect_fn(void) |