PVS-StudioWarnings

PVS-Studio warning V519 for DDKSamples

Nov 17th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. CPSUICALLBACK TVTestCallBack(....)
  2. {
  3.   ....
  4.   switch (DMPubID)
  5.   {
  6.     ....
  7.     case DMPUB_TVOPT_OVERLAY_NO:
  8.       Action = CPSUICB_ACTION_REINIT_ITEMS;
  9.     case DMPUB_TVOPT_ECB_EP:
  10.       ....
  11.       Action = CPSUICB_ACTION_OPTIF_CHANGED;
  12.       //
  13.       // Fall through
  14.       //
  15.     ....
  16.   }
  17.   ....
  18. }
  19.  
  20. The break operator is missing.
  21.  
  22. This suspicious code was found in DDKSamples project by PVS-Studio static code analyzer.
  23. Warning message is:
  24. V519 The 'Action' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1110, 1124. cpsuidat.c 1124
  25.  
  26. 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