d261f558e0a577ee269fe55215505668cdcb6f2a markd Wed Jul 7 07:09:11 2021 -0700 Address several cases of possible uninitialized variables detected by -O3. None of these appear to be actually bugs due to the flow of the code diff --git src/jkOwnLib/trans3.c src/jkOwnLib/trans3.c index 6949317..8a7f840 100644 --- src/jkOwnLib/trans3.c +++ src/jkOwnLib/trans3.c @@ -88,31 +88,31 @@ { *retOffset = aa - seq->dna + t3->start/3; *retFrame = frame; return; } } } internalErr(); } int trans3GenoPos(char *pt, bioSeq *seq, struct trans3 *t3List, boolean isEnd) /* Convert from position in one of three translated frames in * t3List to genomic offset. If t3List is NULL then just use seq * instead. */ { -int offset, frame; +int offset = 0, frame = 0; if (t3List != NULL) { /* Special processing at end. The end coordinate is * not included. In most cases this makes things * easier. Here we have to move it back one * amino acid, so that in the edge case it will * be included in the block that's loaded. Then * we move it back. */ if (isEnd) pt -= 1; trans3Offset(t3List, pt, &offset, &frame); if (isEnd) offset += 1; return 3*offset + frame; }