Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ListJob::doStart()
- {
- Q_D( ListJob );
- switch ( d->option ) {
- break; //<==
- case IncludeUnsubscribed:
- d->command = "LIST";
- break;
- case IncludeFolderRoleFlags:
- d->command = "XLIST";
- break;
- case NoOption:
- default:
- d->command = "LSUB";
- }
- ....
- }
- This suspicious code was found in KDE4 project by PVS-Studio static code analyzer.
- Warning message is:
- V622 Consider inspecting the 'switch' statement. It's possible that the first 'case' operator is missing. listjob.cpp 131
- 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