PVS-StudioWarnings

PVS-Studio warning V524 for Geant4

Nov 17th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. G4double G4CsvAnalysisManager::GetH2Xmin(G4int /*id*/) const
  2. {
  3.   ExceptionForHistograms("GetH2Xmin");
  4.   return 0;
  5. }
  6.  
  7. G4double G4CsvAnalysisManager::GetH2Xmax(G4int /*id*/) const
  8. {
  9.   ExceptionForHistograms("GetH2Xmin");
  10.   return 0;
  11. }
  12.  
  13. This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V524 It is odd that the body of 'GetH2Xmax' function is fully equivalent to the body of 'GetH2Xmin' function. _G4analysis-archive g4csvanalysismanager.cc 933
  16.  
  17. 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