Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char* ResidueMass::getStdModResidues(....) {
- ....
- for (rmap::const_iterator i = p.first; i != p.second; ++i) {
- const cResidue &r = (*i).second;
- if (r.m_masses[0].m_nterm) {
- n_term_aa_mod = true;
- } else if (r.m_masses[0].m_cterm) {
- c_term_aa_mod = true;
- }
- return r.m_residue.c_str();
- }
- if(! strcmp(mod, "+N-formyl-met (Protein)")) {
- return "n";
- } if (! strcmp(mod, "13C6-15N2 (K)")) {
- return "K";
- } if (! strcmp(mod, "13C6-15N4 (R)")) {
- return "R";
- ....
- }
- This suspicious code was found in TPP project by PVS-Studio static code analyzer.
- Warning message is:
- V612 An unconditional 'return' within a loop. residuemass.cxx 1442
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement