LadspaEffect/SWH: remove unused variables and useless assignments for better Clang compatibility
This commit is contained in:
@@ -86,7 +86,6 @@ static void activateFadDelay(LADSPA_Handle instance) {
|
||||
phase = 0;
|
||||
last_phase = 0;
|
||||
last_in = 0.0f;
|
||||
sample_rate = sample_rate;
|
||||
plugin_data->buffer = buffer;
|
||||
plugin_data->buffer_mask = buffer_mask;
|
||||
plugin_data->buffer_size = buffer_size;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
static char const ident[] = "$Header: /home/cvs/giga/ladspa-swh/gsm/gsm_create.c,v 1.1 2001/06/10 21:36:51 swh Exp $";
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -224,7 +224,6 @@ static void runGsm(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
int count = plugin_data->count;
|
||||
LADSPA_Data * dry = plugin_data->dry;
|
||||
gsm_signal * dst = plugin_data->dst;
|
||||
float fs = plugin_data->fs;
|
||||
gsm handle = plugin_data->handle;
|
||||
int resamp = plugin_data->resamp;
|
||||
float rsf = plugin_data->rsf;
|
||||
@@ -238,8 +237,6 @@ static void runGsm(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
int error_rate = f_round(error);
|
||||
int num_passes = f_round(passes);
|
||||
|
||||
fs = fs; // So gcc doesn't think it's unused
|
||||
|
||||
for (pos = 0; pos < sample_count; pos++) {
|
||||
|
||||
// oversample into buffer down to aprox 8kHz, 13bit
|
||||
@@ -322,7 +319,6 @@ static void runAddingGsm(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
int count = plugin_data->count;
|
||||
LADSPA_Data * dry = plugin_data->dry;
|
||||
gsm_signal * dst = plugin_data->dst;
|
||||
float fs = plugin_data->fs;
|
||||
gsm handle = plugin_data->handle;
|
||||
int resamp = plugin_data->resamp;
|
||||
float rsf = plugin_data->rsf;
|
||||
@@ -336,8 +332,6 @@ static void runAddingGsm(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
int error_rate = f_round(error);
|
||||
int num_passes = f_round(passes);
|
||||
|
||||
fs = fs; // So gcc doesn't think it's unused
|
||||
|
||||
for (pos = 0; pos < sample_count; pos++) {
|
||||
|
||||
// oversample into buffer down to aprox 8kHz, 13bit
|
||||
|
||||
@@ -817,7 +817,6 @@ static void runHermesFilter(LADSPA_Handle instance, unsigned long sample_count)
|
||||
float lfo2_phase = plugin_data->lfo2_phase;
|
||||
blo_h_osc * osc1_d = plugin_data->osc1_d;
|
||||
blo_h_osc * osc2_d = plugin_data->osc2_d;
|
||||
blo_h_tables * tables = plugin_data->tables;
|
||||
sv_filter * xover_b1_data = plugin_data->xover_b1_data;
|
||||
sv_filter * xover_b2_data = plugin_data->xover_b2_data;
|
||||
|
||||
@@ -927,8 +926,6 @@ static void runHermesFilter(LADSPA_Handle instance, unsigned long sample_count)
|
||||
dela_fb[1] = dela2_fb;
|
||||
dela_fb[2] = dela3_fb;
|
||||
|
||||
tables = tables; // To shut up gcc
|
||||
|
||||
for (pos = 0; pos < sample_count; pos++) {
|
||||
count++; // Count of number of samples processed
|
||||
|
||||
@@ -1204,7 +1201,6 @@ static void runAddingHermesFilter(LADSPA_Handle instance, unsigned long sample_c
|
||||
float lfo2_phase = plugin_data->lfo2_phase;
|
||||
blo_h_osc * osc1_d = plugin_data->osc1_d;
|
||||
blo_h_osc * osc2_d = plugin_data->osc2_d;
|
||||
blo_h_tables * tables = plugin_data->tables;
|
||||
sv_filter * xover_b1_data = plugin_data->xover_b1_data;
|
||||
sv_filter * xover_b2_data = plugin_data->xover_b2_data;
|
||||
|
||||
@@ -1314,8 +1310,6 @@ static void runAddingHermesFilter(LADSPA_Handle instance, unsigned long sample_c
|
||||
dela_fb[1] = dela2_fb;
|
||||
dela_fb[2] = dela3_fb;
|
||||
|
||||
tables = tables; // To shut up gcc
|
||||
|
||||
for (pos = 0; pos < sample_count; pos++) {
|
||||
count++; // Count of number of samples processed
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
the stack and crap like that.
|
||||
*/
|
||||
|
||||
static const float _truncate_half = 0.5f;
|
||||
//static const float _truncate_half = 0.5f;
|
||||
|
||||
int truncate(float flt) {
|
||||
int i;
|
||||
|
||||
@@ -79,7 +79,6 @@ static void activatePitchScale(LADSPA_Handle instance) {
|
||||
memset(buffers->gAnaFreq, 0, FRAME_LENGTH*sizeof(float));
|
||||
memset(buffers->gAnaMagn, 0, FRAME_LENGTH*sizeof(float));
|
||||
buffers->gRover = 0;
|
||||
sample_rate = sample_rate;
|
||||
|
||||
/* do one run to make sure the plans are set up */
|
||||
pitch_scale(buffers, 1.0, FRAME_LENGTH, 4, FRAME_LENGTH, sample_rate, buffers->gInFIFO, buffers->gOutFIFO, 0, 0.0f);
|
||||
|
||||
@@ -207,8 +207,6 @@ static void activateRingmod_1i1o1l(LADSPA_Handle instance) {
|
||||
|
||||
static void cleanupRingmod_1i1o1l(LADSPA_Handle instance) {
|
||||
#line 93 "ringmod_1188.xml"
|
||||
Ringmod_1i1o1l *plugin_data = (Ringmod_1i1o1l *)instance;
|
||||
plugin_data = plugin_data;
|
||||
if (--refcount == 0) {
|
||||
free(sin_tbl);
|
||||
free(tri_tbl);
|
||||
|
||||
@@ -100,7 +100,6 @@ static void activateStepMuxer(LADSPA_Handle instance) {
|
||||
}
|
||||
current_ch = 0;
|
||||
last_clock = 0.0f;
|
||||
sample_rate = sample_rate;
|
||||
plugin_data->ch_gain = ch_gain;
|
||||
plugin_data->ch_state = ch_state;
|
||||
plugin_data->current_ch = current_ch;
|
||||
|
||||
@@ -116,7 +116,6 @@ static void activateTapeDelay(LADSPA_Handle instance) {
|
||||
last_in = 0.0f;
|
||||
last2_in = 0.0f;
|
||||
last3_in = 0.0f;
|
||||
sample_rate = sample_rate;
|
||||
z0 = 0.0f;
|
||||
z1 = 0.0f;
|
||||
z2 = 0.0f;
|
||||
|
||||
@@ -97,7 +97,6 @@ static void activateTransient(LADSPA_Handle instance) {
|
||||
medi_track = 0.1;
|
||||
slow_track = 0.1;
|
||||
count = 0;
|
||||
sample_rate = sample_rate;
|
||||
plugin_data->buffer = buffer;
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
plugin_data->count = count;
|
||||
|
||||
Reference in New Issue
Block a user