PVS-StudioWarnings

PVS-Studio warning V529 for DDKSamples

Nov 12th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. NDIS_STATUS
  2. HwSetPowerMgmtMode(....)
  3. {
  4.   ....
  5.   if (!HW_MULTIPLE_MAC_ENABLED(Hw) &&
  6.       (PMMode->dot11PowerMode != dot11_power_mode_unknown));
  7.   {
  8.     NdisMoveMemory(&Hw->MacState.PowerMgmtMode,
  9.                    PMMode, sizeof(DOT11_POWER_MGMT_MODE));
  10.     HalSetPowerMgmtMode(Hw->Hal, PMMode);
  11.   }
  12.   ....
  13. }
  14.  
  15. This suspicious code was found in DDKSamples project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V529 Odd semicolon ';' after 'if' operator. hw_mac.c 95
  18.  
  19. 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