subsetBED.cpp:72:24: warning: variable 'mapping' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
} else if (genotype == 1) {
^~~~~~~~~~~~~
subsetBED.cpp:77:26: note: uninitialized use occurs here
out(idx_i) = mapping;
^~~~~~~
subsetBED.cpp:72:20: note: remove the 'if' if its condition is always true
} else if (genotype == 1) {
^~~~~~~~~~~~~~~~~~~
subsetBED.cpp:65:24: note: initialize the variable 'mapping' to silence this warning
int mapping;
^
= 0
subsetBED.cpp:176:26: warning: variable 'mapping' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
} else if (genotype == 1) {
^~~~~~~~~~~~~
subsetBED.cpp:181:35: note: uninitialized use occurs here
out(idx_i, idx_j) = mapping;
^~~~~~~
subsetBED.cpp:176:22: note: remove the 'if' if its condition is always true
} else if (genotype == 1) {
^~~~~~~~~~~~~~~~~~~
subsetBED.cpp:169:26: note: initialize the variable 'mapping' to silence this warning
int mapping;
^
= 0
2 warnings generated.