Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Size getTheoreticalmaxPosition() const
- {
- if (!this->size())
- {
- throw Exception::Precondition(__FILE__, __LINE__, ....);
- }
- ....
- }
- virtual void run()
- {
- ....
- #pragma omp parallel for
- for (SignedSize i = 0; i < (SignedSize)seeds.size(); ++i)
- {
- ....
- f.setMZ(
- traces[traces.getTheoreticalmaxPosition()].getAvgMZ());
- ....
- }
- ....
- }
- This suspicious code was found in OpenMS project by PVS-Studio static code analyzer.
- Warning message is:
- V1301 The 'throw' keyword cannot be used outside of a try..catch block in a parallel section. featurefinderalgorithmpickedhelperstructs.h 199
- 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