Commit 35ca6417 authored by Andreas Freise's avatar Andreas Freise
Browse files

more cleaning up of warnings

parent 048e356e
......@@ -1260,7 +1260,7 @@ int set_k_mirror(int mirror_index) {
}
}
int n,m,n1,m1,n2,m2,k;
int n=0,m=0,n1=0,m1=0,n2=0,m2=0,k=0;
// Now we compute any surface motion map couplings, purely in reflection.
if(mirror->num_surface_motions) {
......@@ -1277,7 +1277,7 @@ int set_k_mirror(int mirror_index) {
// zero the output matrix
memset(&(C[0][0]), 0, inter.num_fields * inter.num_fields * sizeof(complex_t));
int n, m, l, _n1, _m1;
int l=0, _n1=0, _m1=0;
for (n = 0; n < inter.num_fields; n++) {
get_tem_modes_from_field_index(&_n1, &_m1, n);
......
......@@ -1122,14 +1122,14 @@ void fill_light_signal_rhs(signal_t *signal, ifo_matrix_vars_t* M_car, ifo_matri
node_t* n = &inter.node_list[light_input->node_index];
int rhs_idx_car = 0;
//int rhs_idx_car = 0; // do we need this?
int rhs_idx_sig = 0;
if(light_input->node_port == 2) { // first port in the input
rhs_idx_car = M_ifo_car.node_rhs_idx_2[n->list_index];
//rhs_idx_car = M_ifo_car.node_rhs_idx_2[n->list_index];
rhs_idx_sig = M_ifo_sig.node_rhs_idx_2[n->list_index];
} else if(light_input->node_port == 1) { // second port is the input
rhs_idx_car = M_ifo_car.node_rhs_idx_1[n->list_index];
//rhs_idx_car = M_ifo_car.node_rhs_idx_1[n->list_index];
rhs_idx_sig = M_ifo_sig.node_rhs_idx_1[n->list_index];
} else
bug_error("Node did not have direction set when filling in RHS vector");
......@@ -1710,7 +1710,8 @@ void set_light_input_ports(){
}
complex_t compute_motion(int motion_idx, int comp_type, int comp_idx){
int x_rhs_idx, num_motions;
int x_rhs_idx=-1;
int num_motions=0;
complex_t signal = complex_0;
if(comp_type == MIRROR){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment