Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ComAudio::serialize(void* r)
- {
- bool ret = false;
- do
- {
- ....
- if (file != nullptr)
- {
- if (strcmp(file, "") == 0)
- {
- continue;
- }
- ....
- }
- }while(0);
- return ret;
- }
- This suspicious code was found in Cocos2d-x project by PVS-Studio static code analyzer.
- Warning message is:
- V696 The 'continue' operator will terminate 'do { ... } while (FALSE)' loop because the condition is always false. Check lines: 125, 153. cccomaudio.cpp 125
- 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