Fix issues for clang-analyzer-8
[alexxy/gromacs.git] / src / gromacs / analysisdata / tests / mock_datamodule.cpp
index 7fdd647eb6349137bad72480e0ec616da13fecd9..b2551ca65508b29a204dd8539e40b7d12e45a041 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2011,2012,2013,2014,2015,2017, by the GROMACS development team, led by
+ * Copyright (c) 2011,2012,2013,2014,2015,2017,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -536,6 +536,7 @@ MockAnalysisDataModule::setupStaticCheck(const AnalysisDataTestInput &data,
 
     if (bParallel)
     {
+#ifndef __clang_analyzer__
         ::testing::Expectation init =
             EXPECT_CALL(*this, parallelDataStarted(source, _))
                 .WillOnce(Return(true));
@@ -573,6 +574,7 @@ MockAnalysisDataModule::setupStaticCheck(const AnalysisDataTestInput &data,
         }
         EXPECT_CALL(*this, dataFinished())
             .After(framesFinished);
+#endif
     }
     else
     {