To support this change, turn on lots more compiler warnings, and fix all the warnings generated.
Showing the changes to src/dcshift.c (1 of 93 files). Show all
Unified · Split
| @@ -30,7 +30,7 @@ typedef struct { · 29 unmodified lines | |||
| 30 | /* | 30 | /* |
| 31 | * Process options: dcshift (double) type (amplitude, power, dB) | 31 | * Process options: dcshift (double) type (amplitude, power, dB) |
| 32 | */ | 32 | */ |
| 33 | int st_dcshift_getopts(eff_t effp, int n, char **argv) | 33 | static int st_dcshift_getopts(eff_t effp, int n, char **argv) |
| 34 | { | 34 | { |
| 35 | dcs_t dcs = (dcs_t) effp->priv; | 35 | dcs_t dcs = (dcs_t) effp->priv; |
| 36 | dcs->dcshift = 1.0; /* default is no change */ | 36 | dcs->dcshift = 1.0; /* default is no change */ |
| @@ -72,7 +72,7 @@ int st_dcshift_getopts(eff_t effp, int n, char **argv) · 35 unmodified lines | |||
| 72 | /* | 72 | /* |
| 73 | * Start processing | 73 | * Start processing |
| 74 | */ | 74 | */ |
| 75 | int st_dcshift_start(eff_t effp) | 75 | static int st_dcshift_start(eff_t effp) |
| 76 | { | 76 | { |
| 77 | dcs_t dcs = (dcs_t) effp->priv; | 77 | dcs_t dcs = (dcs_t) effp->priv; |
| 78 | 78 | ||
| @@ -99,7 +99,7 @@ int st_dcshift_start(eff_t effp) · 20 unmodified lines | |||
| 99 | /* | 99 | /* |
| 100 | * Process data. | 100 | * Process data. |
| 101 | */ | 101 | */ |
| 102 | int st_dcshift_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, | 102 | static int st_dcshift_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, |
| 103 | st_size_t *isamp, st_size_t *osamp) | 103 | st_size_t *isamp, st_size_t *osamp) |
| 104 | { | 104 | { |
| 105 | dcs_t dcs = (dcs_t) effp->priv; | 105 | dcs_t dcs = (dcs_t) effp->priv; |
| @@ -166,7 +166,7 @@ int st_dcshift_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 60 unmodified lines | |||
| 166 | * Do anything required when you stop reading samples. | 166 | * Do anything required when you stop reading samples. |
| 167 | * Don't close input file! | 167 | * Don't close input file! |
| 168 | */ | 168 | */ |
| 169 | int st_dcshift_stop(eff_t effp) | 169 | static int st_dcshift_stop(eff_t effp) |
| 170 | { | 170 | { |
| 171 | dcs_t dcs = (dcs_t) effp->priv; | 171 | dcs_t dcs = (dcs_t) effp->priv; |
| 172 | 172 | ||