MRChemSoft / mrchem

MultiResolution Chemistry
GNU Lesser General Public License v3.0
27 stars 21 forks source link

Static code analyzer warnings #89

Closed susilehtola closed 5 years ago

susilehtola commented 6 years ago

Running MRChem through cppcheck 1.80, the code gives out the following warnings, most of which appear to be justified.

$ cppcheck --enable=warning src/
Checking src/mrchem/MREnv.cpp ...
Checking src/mrchem/MREnv.cpp: EIGEN_USE_BLAS...
Checking src/mrchem/MREnv.cpp: HAVE_MPI...
1/86 files checked 1% done
Checking src/mrchem/SCFDriver.cpp ...
2/86 files checked 2% done
Checking src/mrchem/chemistry/Molecule.cpp ...
3/86 files checked 3% done
Checking src/mrchem/chemistry/PeriodicTable.cpp ...
4/86 files checked 4% done
Checking src/mrchem/initial_guess/AOBasis.cpp ...
[src/mrchem/initial_guess/AOBasis.h:6]: (warning) The class 'AOBasis' has 'copy constructor' but lack of 'operator='.
5/86 files checked 5% done
Checking src/mrchem/initial_guess/AOContraction.cpp ...
6/86 files checked 6% done
Checking src/mrchem/initial_guess/Intgrl.cpp ...
7/86 files checked 8% done
Checking src/mrchem/initial_guess/OrbitalExp.cpp ...
8/86 files checked 9% done
Checking src/mrchem/mrchem.cpp ...
9/86 files checked 10% done
Checking src/mrchem/qmfunctions/Density.cpp ...
[src/mrchem/qmfunctions/Density.cpp:25]: (warning) Member variable 'Density::shMem' is not initialized in the constructor.
[src/mrchem/qmfunctions/Density.cpp:34]: (warning) Member variable 'Density::shMem' is not initialized in the constructor.
[src/mrchem/qmfunctions/Density.h:8]: (warning) The class 'Density' has 'copy constructor' but lack of 'operator='.
Checking src/mrchem/qmfunctions/Density.cpp: HAVE_MPI...
10/86 files checked 11% done
Checking src/mrchem/qmfunctions/DensityProjector.cpp ...
[src/mrchem/qmfunctions/QMFunction.h:12]: (warning) Member variable 'QMFunction::re' is not assigned a value in 'QMFunction::operator='.
[src/mrchem/qmfunctions/QMFunction.h:12]: (warning) Member variable 'QMFunction::im' is not assigned a value in 'QMFunction::operator='.
[src/mrchem/qmfunctions/Orbital.h:13]: (warning) Member variable 'Orbital::spin' is not assigned a value in 'Orbital::operator='.
[src/mrchem/qmfunctions/Orbital.h:13]: (warning) Member variable 'Orbital::occupancy' is not assigned a value in 'Orbital::operator='.
[src/mrchem/qmfunctions/Orbital.h:13]: (warning) Member variable 'Orbital::error' is not assigned a value in 'Orbital::operator='.
Checking src/mrchem/qmfunctions/DensityProjector.cpp: HAVE_MPI...
11/86 files checked 12% done
Checking src/mrchem/qmfunctions/NuclearFunction.cpp ...
[src/mrchem/qmfunctions/NuclearFunction.h:10]: (warning) The class 'NuclearFunction' has 'operator=' but lack of 'copy constructor'.
12/86 files checked 13% done
Checking src/mrchem/qmfunctions/Orbital.cpp ...
Checking src/mrchem/qmfunctions/Orbital.cpp: HAVE_MPI...
13/86 files checked 15% done
Checking src/mrchem/qmfunctions/OrbitalAdder.cpp ...
Checking src/mrchem/qmfunctions/OrbitalAdder.cpp: HAVE_MPI...
14/86 files checked 16% done
Checking src/mrchem/qmfunctions/OrbitalMultiplier.cpp ...
Checking src/mrchem/qmfunctions/OrbitalMultiplier.cpp: HAVE_MPI...
15/86 files checked 17% done
Checking src/mrchem/qmfunctions/OrbitalProjector.cpp ...
[src/mrchem/qmfunctions/OrbitalProjector.cpp:143]: (warning) Possible null pointer dereference: gtOrb
Checking src/mrchem/qmfunctions/OrbitalProjector.cpp: HAVE_MPI...
16/86 files checked 18% done
Checking src/mrchem/qmfunctions/OrbitalVector.cpp ...
Checking src/mrchem/qmfunctions/OrbitalVector.cpp: HAVE_MPI...
17/86 files checked 19% done
Checking src/mrchem/qmfunctions/QMFunction.cpp ...
18/86 files checked 20% done
Checking src/mrchem/qmoperators/CoulombPotential.cpp ...
Checking src/mrchem/qmoperators/CoulombPotential.cpp: HAVE_MPI...
19/86 files checked 22% done
Checking src/mrchem/qmoperators/DeltaOperator.cpp ...
20/86 files checked 23% done
Checking src/mrchem/qmoperators/ExchangePotential.cpp ...
[src/mrchem/qmoperators/ExchangePotential.cpp:347] -> [src/mrchem/qmoperators/ExchangePotential.cpp:340]: (warning) Either the condition 'phi_iii!=0' is redundant or there is possible null pointer dereference: phi_iii.
[src/mrchem/qmoperators/ExchangePotential.cpp:342] -> [src/mrchem/qmoperators/ExchangePotential.cpp:340]: (warning) Either the condition 'V_ii!=0' is redundant or there is possible null pointer dereference: V_ii.
[src/mrchem/qmoperators/ExchangePotential.cpp:347] -> [src/mrchem/qmoperators/ExchangePotential.cpp:346]: (warning) Either the condition 'phi_iii!=0' is redundant or there is possible null pointer dereference: phi_iii.
[src/mrchem/qmoperators/ExchangePotential.cpp:407] -> [src/mrchem/qmoperators/ExchangePotential.cpp:393]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:402] -> [src/mrchem/qmoperators/ExchangePotential.cpp:393]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
[src/mrchem/qmoperators/ExchangePotential.cpp:412] -> [src/mrchem/qmoperators/ExchangePotential.cpp:399]: (warning) Either the condition 'phi_iij!=0' is redundant or there is possible null pointer dereference: phi_iij.
[src/mrchem/qmoperators/ExchangePotential.cpp:402] -> [src/mrchem/qmoperators/ExchangePotential.cpp:399]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
[src/mrchem/qmoperators/ExchangePotential.cpp:407] -> [src/mrchem/qmoperators/ExchangePotential.cpp:406]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:412] -> [src/mrchem/qmoperators/ExchangePotential.cpp:411]: (warning) Either the condition 'phi_iij!=0' is redundant or there is possible null pointer dereference: phi_iij.
[src/mrchem/qmoperators/ExchangePotential.cpp:473] -> [src/mrchem/qmoperators/ExchangePotential.cpp:457]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:468] -> [src/mrchem/qmoperators/ExchangePotential.cpp:457]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
[src/mrchem/qmoperators/ExchangePotential.cpp:466] -> [src/mrchem/qmoperators/ExchangePotential.cpp:464]: (warning) Either the condition 'phi_iij!=0' is redundant or there is possible null pointer dereference: phi_iij.
[src/mrchem/qmoperators/ExchangePotential.cpp:468] -> [src/mrchem/qmoperators/ExchangePotential.cpp:464]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
[src/mrchem/qmoperators/ExchangePotential.cpp:473] -> [src/mrchem/qmoperators/ExchangePotential.cpp:472]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:523] -> [src/mrchem/qmoperators/ExchangePotential.cpp:517]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:531] -> [src/mrchem/qmoperators/ExchangePotential.cpp:517]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
[src/mrchem/qmoperators/ExchangePotential.cpp:523] -> [src/mrchem/qmoperators/ExchangePotential.cpp:522]: (warning) Either the condition 'phi_jij!=0' is redundant or there is possible null pointer dereference: phi_jij.
[src/mrchem/qmoperators/ExchangePotential.cpp:531] -> [src/mrchem/qmoperators/ExchangePotential.cpp:528]: (warning) Either the condition 'V_ij!=0' is redundant or there is possible null pointer dereference: V_ij.
Checking src/mrchem/qmoperators/ExchangePotential.cpp: HAVE_MPI...
21/86 files checked 24% done
Checking src/mrchem/qmoperators/FockOperator.cpp ...
Checking src/mrchem/qmoperators/FockOperator.cpp: HAVE_MPI...
22/86 files checked 25% done
Checking src/mrchem/qmoperators/IdentityOperator.cpp ...
Checking src/mrchem/qmoperators/IdentityOperator.cpp: HAVE_MPI...
23/86 files checked 26% done
Checking src/mrchem/qmoperators/KineticOperator.cpp ...
24/86 files checked 27% done
Checking src/mrchem/qmoperators/QMDerivative.cpp ...
25/86 files checked 29% done
Checking src/mrchem/qmoperators/QMOperator.cpp ...
26/86 files checked 30% done
Checking src/mrchem/qmoperators/QMOperatorExp.cpp ...
Checking src/mrchem/qmoperators/QMOperatorExp.cpp: HAVE_MPI...
27/86 files checked 31% done
Checking src/mrchem/qmoperators/QMPotential.cpp ...
28/86 files checked 32% done
Checking src/mrchem/qmoperators/SpinOperator.cpp ...
29/86 files checked 33% done
Checking src/mrchem/qmoperators/XCFunctional.cpp ...
30/86 files checked 34% done
Checking src/mrchem/qmoperators/XCOperator.cpp ...
31/86 files checked 36% done
Checking src/mrchem/qmoperators/XCPotential.cpp ...
32/86 files checked 37% done
Checking src/mrchem/scf_solver/Accelerator.cpp ...
Checking src/mrchem/scf_solver/Accelerator.cpp: HAVE_MPI...
33/86 files checked 38% done
Checking src/mrchem/scf_solver/EnergyOptimizer.cpp ...
Checking src/mrchem/scf_solver/EnergyOptimizer.cpp: HAVE_MPI...
34/86 files checked 39% done
Checking src/mrchem/scf_solver/GroundStateSolver.cpp ...
Checking src/mrchem/scf_solver/GroundStateSolver.cpp: HAVE_MPI...
35/86 files checked 40% done
Checking src/mrchem/scf_solver/HelmholtzOperatorSet.cpp ...
Checking src/mrchem/scf_solver/HelmholtzOperatorSet.cpp: HAVE_MPI...
36/86 files checked 41% done
Checking src/mrchem/scf_solver/KAIN.cpp ...
Checking src/mrchem/scf_solver/KAIN.cpp: HAVE_MPI...
37/86 files checked 43% done
Checking src/mrchem/scf_solver/LinearResponseSolver.cpp ...
38/86 files checked 44% done
Checking src/mrchem/scf_solver/NonlinearMaximizer.cpp ...
39/86 files checked 45% done
Checking src/mrchem/scf_solver/OrbitalOptimizer.cpp ...
Checking src/mrchem/scf_solver/OrbitalOptimizer.cpp: HAVE_MPI...
40/86 files checked 46% done
Checking src/mrchem/scf_solver/SCF.cpp ...
41/86 files checked 47% done
Checking src/mrcpp/BoundingBox.cpp ...
[src/mrcpp/NodeIndex.h:31]: (warning) Logical disjunction always evaluates to true: d >= 0 || d < 1.
[src/mrcpp/NodeIndex.h:31]: (warning) Logical disjunction always evaluates to true: d >= 0 || d < 2.
[src/mrcpp/NodeIndex.h:31]: (warning) Logical disjunction always evaluates to true: d >= 0 || d < 3.
42/86 files checked 48% done
Checking src/mrcpp/HilbertPath.cpp ...
[src/mrcpp/HilbertPath.h:4]: (warning) The class 'HilbertPath < 1 >' has 'copy constructor' but lack of 'operator='.
[src/mrcpp/HilbertPath.h:4]: (warning) The class 'HilbertPath < 2 >' has 'copy constructor' but lack of 'operator='.
[src/mrcpp/HilbertPath.h:4]: (warning) The class 'HilbertPath < 3 >' has 'copy constructor' but lack of 'operator='.
43/86 files checked 50% done
Checking src/mrcpp/MathUtils.cpp ...
Checking src/mrcpp/MathUtils.cpp: HAVE_MPI...
Checking src/mrcpp/MathUtils.cpp: HAVE_OPENMP...
Checking src/mrcpp/MathUtils.cpp: __INTEL_COMPILER...
44/86 files checked 51% done
Checking src/mrcpp/NodeBox.cpp ...
[src/mrcpp/NodeBox.h:17]: (warning) Member variable 'NodeBox::nOccupied' is not initialized in the constructor.
[src/mrcpp/NodeBox.h:17]: (warning) Member variable 'NodeBox::nodes' is not initialized in the constructor.
45/86 files checked 52% done
Checking src/mrcpp/OperatorStatistics.cpp ...
Checking src/mrcpp/OperatorStatistics.cpp: HAVE_MPI...
Checking src/mrcpp/OperatorStatistics.cpp: HAVE_OPENMP...
46/86 files checked 53% done
Checking src/mrcpp/Plot.cpp ...
[src/mrcpp/Plot.cpp:479]: (warning) Logical disjunction always evaluates to true: p > 1.e-4 || p < 1.e+2.
47/86 files checked 54% done
Checking src/mrcpp/RepresentableFunction.cpp ...
[src/mrcpp/RepresentableFunction.cpp:58]: (warning) Member variable 'RepresentableFunction::bounded' is not assigned a value in 'RepresentableFunction::operator='.
[src/mrcpp/RepresentableFunction.cpp:58]: (warning) Member variable 'RepresentableFunction::A' is not assigned a value in 'RepresentableFunction::operator='.
[src/mrcpp/RepresentableFunction.cpp:58]: (warning) Member variable 'RepresentableFunction::B' is not assigned a value in 'RepresentableFunction::operator='.
48/86 files checked 55% done
Checking src/mrcpp/TelePrompter.cpp ...
[src/mrcpp/Timer.h:9]: (warning) The class 'Timer' has 'operator=' but lack of 'copy constructor'.
Checking src/mrcpp/TelePrompter.cpp: HAVE_MPI...
Checking src/mrcpp/TelePrompter.cpp: HAVE_OPENMP...
49/86 files checked 56% done
Checking src/mrcpp/mwanalytic/GaussExp.cpp ...
50/86 files checked 58% done
Checking src/mrcpp/mwanalytic/GaussFunc.cpp ...
51/86 files checked 59% done
Checking src/mrcpp/mwanalytic/GaussPoly.cpp ...
[src/mrcpp/mwanalytic/GaussPoly.h:22]: (warning) The class 'GaussPoly' has 'copy constructor' but lack of 'operator='.
52/86 files checked 60% done
Checking src/mrcpp/mwanalytic/Gaussian.cpp ...
53/86 files checked 61% done
Checking src/mrcpp/mwanalytic/LegendrePoly.cpp ...
54/86 files checked 62% done
Checking src/mrcpp/mwanalytic/Polynomial.cpp ...
55/86 files checked 63% done
Checking src/mrcpp/mwbuilders/ConvolutionCalculator.cpp ...
56/86 files checked 65% done
Checking src/mrcpp/mwbuilders/DerivativeCalculator.cpp ...
57/86 files checked 66% done
Checking src/mrcpp/mwbuilders/MWFDCalculator.cpp ...
58/86 files checked 67% done
Checking src/mrcpp/mwbuilders/ProjectionCalculator.cpp ...
59/86 files checked 68% done
Checking src/mrcpp/mwbuilders/TreeBuilder.cpp ...
60/86 files checked 69% done
Checking src/mrcpp/mwcore/CrossCorrelation.cpp ...
61/86 files checked 70% done
Checking src/mrcpp/mwcore/CrossCorrelationCache.cpp ...
[src/mrcpp/mwcore/CrossCorrelationCache.h:36]: (warning) Member variable 'CrossCorrelationCache::type' is not assigned a value in 'CrossCorrelationCache::operator='.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < CrossCorrelation >::highWaterMark' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < CrossCorrelation >::memLoaded' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < CrossCorrelation >::highWaterMark' is not assigned a value in 'ObjectCache < CrossCorrelation >::operator='.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < CrossCorrelation >::memLoaded' is not assigned a value in 'ObjectCache < CrossCorrelation >::operator='.
[src/mrcpp/mwcore/CrossCorrelationCache.h:13]: (warning) The class 'CrossCorrelationCache' has 'operator=' but lack of 'copy constructor'.
[src/mrcpp/mwcore/ObjectCache.h:23]: (warning) The class 'ObjectCache < CrossCorrelation >' has 'operator=' but lack of 'copy constructor'.
Checking src/mrcpp/mwcore/CrossCorrelationCache.cpp: HAVE_OPENMP...
62/86 files checked 72% done
Checking src/mrcpp/mwcore/FilterCache.cpp ...
[src/mrcpp/mwcore/FilterCache.h:61]: (warning) Member variable 'FilterCache::type' is not assigned a value in 'FilterCache::operator='.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < MWFilter >::highWaterMark' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < MWFilter >::memLoaded' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < MWFilter >::highWaterMark' is not assigned a value in 'ObjectCache < MWFilter >::operator='.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < MWFilter >::memLoaded' is not assigned a value in 'ObjectCache < MWFilter >::operator='.
[src/mrcpp/mwcore/FilterCache.h:41]: (warning) The class 'FilterCache' has 'operator=' but lack of 'copy constructor'.
[src/mrcpp/mwcore/ObjectCache.h:23]: (warning) The class 'ObjectCache < MWFilter >' has 'operator=' but lack of 'copy constructor'.
Checking src/mrcpp/mwcore/FilterCache.cpp: HAVE_OPENMP...
63/86 files checked 73% done
Checking src/mrcpp/mwcore/GaussQuadrature.cpp ...
64/86 files checked 74% done
Checking src/mrcpp/mwcore/InterpolatingBasis.cpp ...
[src/mrcpp/mwcore/QuadratureCache.h:39]: (warning) Member variable 'QuadratureCache::A' is not assigned a value in 'QuadratureCache::operator='.
[src/mrcpp/mwcore/QuadratureCache.h:39]: (warning) Member variable 'QuadratureCache::B' is not assigned a value in 'QuadratureCache::operator='.
[src/mrcpp/mwcore/QuadratureCache.h:39]: (warning) Member variable 'QuadratureCache::intervals' is not assigned a value in 'QuadratureCache::operator='.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < GaussQuadrature >::highWaterMark' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:112]: (warning) Member variable 'ObjectCache < GaussQuadrature >::memLoaded' is not initialized in the constructor.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < GaussQuadrature >::highWaterMark' is not assigned a value in 'ObjectCache < GaussQuadrature >::operator='.
[src/mrcpp/mwcore/ObjectCache.h:113]: (warning) Member variable 'ObjectCache < GaussQuadrature >::memLoaded' is not assigned a value in 'ObjectCache < GaussQuadrature >::operator='.
[src/mrcpp/mwcore/ObjectCache.h:23]: (warning) The class 'ObjectCache < GaussQuadrature >' has 'operator=' but lack of 'copy constructor'.
Checking src/mrcpp/mwcore/InterpolatingBasis.cpp: HAVE_OPENMP...
65/86 files checked 75% done
Checking src/mrcpp/mwcore/LegendreBasis.cpp ...
Checking src/mrcpp/mwcore/LegendreBasis.cpp: HAVE_OPENMP...
66/86 files checked 76% done
Checking src/mrcpp/mwcore/MWFilter.cpp ...
67/86 files checked 77% done
Checking src/mrcpp/mwcore/QuadratureCache.cpp ...
Checking src/mrcpp/mwcore/QuadratureCache.cpp: HAVE_OPENMP...
68/86 files checked 79% done
Checking src/mrcpp/mwoperators/ABGVCalculator.cpp ...
69/86 files checked 80% done
Checking src/mrcpp/mwoperators/ConvolutionOperator.cpp ...
70/86 files checked 81% done
Checking src/mrcpp/mwoperators/CrossCorrelationCalculator.cpp ...
71/86 files checked 82% done
Checking src/mrcpp/mwoperators/HelmholtzKernel.cpp ...
72/86 files checked 83% done
Checking src/mrcpp/mwoperators/MWOperator.cpp ...
73/86 files checked 84% done
Checking src/mrcpp/mwoperators/PHCalculator.cpp ...
74/86 files checked 86% done
Checking src/mrcpp/mwoperators/PoissonKernel.cpp ...
75/86 files checked 87% done
Checking src/mrcpp/mwtrees/FunctionNode.cpp ...
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 1 >::nNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 1 >::maxNodesPerChunk' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 1 >::sizeNodeCoeff' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 1 >::coeffStack' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 1 >::maxNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 2 >::nNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 2 >::maxNodesPerChunk' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 2 >::sizeNodeCoeff' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 2 >::coeffStack' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 2 >::maxNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 3 >::nNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 3 >::maxNodesPerChunk' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 3 >::sizeNodeCoeff' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 3 >::coeffStack' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree < 3 >::maxNodes' is not initialized in the constructor.
Checking src/mrcpp/mwtrees/FunctionNode.cpp: HAVE_OPENMP...
76/86 files checked 88% done
Checking src/mrcpp/mwtrees/FunctionTree.cpp ...
Checking src/mrcpp/mwtrees/FunctionTree.cpp: HAVE_OPENMP...
77/86 files checked 89% done
Checking src/mrcpp/mwtrees/MWNode.cpp ...
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree::nNodes' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree::maxNodesPerChunk' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree::sizeNodeCoeff' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree::coeffStack' is not initialized in the constructor.
[src/mrcpp/mwtrees/SerialTree.h:23]: (warning) Member variable 'SerialTree::maxNodes' is not initialized in the constructor.
Checking src/mrcpp/mwtrees/MWNode.cpp: HAVE_OPENMP...
78/86 files checked 90% done
Checking src/mrcpp/mwtrees/MWTree.cpp ...
Checking src/mrcpp/mwtrees/MWTree.cpp: HAVE_OPENMP...
79/86 files checked 91% done
Checking src/mrcpp/mwtrees/OperatorNode.cpp ...
Checking src/mrcpp/mwtrees/OperatorNode.cpp: HAVE_OPENMP...
80/86 files checked 93% done
Checking src/mrcpp/mwtrees/OperatorTree.cpp ...
Checking src/mrcpp/mwtrees/OperatorTree.cpp: HAVE_OPENMP...
81/86 files checked 94% done
Checking src/mrcpp/mwtrees/ProjectedNode.cpp ...
Checking src/mrcpp/mwtrees/ProjectedNode.cpp: HAVE_OPENMP...
82/86 files checked 95% done
Checking src/mrcpp/mwtrees/SerialFunctionTree.cpp ...
Checking src/mrcpp/mwtrees/SerialFunctionTree.cpp: HAVE_OPENMP...
83/86 files checked 96% done
Checking src/mrcpp/mwtrees/SerialOperatorTree.cpp ...
Checking src/mrcpp/mwtrees/SerialOperatorTree.cpp: HAVE_OPENMP...
84/86 files checked 97% done
Checking src/mrcpp/mwtrees/SerialTree.cpp ...
Checking src/mrcpp/mwtrees/SerialTree.cpp: HAVE_OPENMP...
85/86 files checked 98% done
Checking src/mrcpp/parallel.cpp ...
[src/mrcpp/parallel.cpp:27]: (warning) Member variable 'SharedMemory::sh_start_ptr' is not initialized in the constructor.
[src/mrcpp/parallel.cpp:27]: (warning) Member variable 'SharedMemory::sh_max_ptr' is not initialized in the constructor.
[src/mrcpp/parallel.cpp:27]: (warning) Member variable 'SharedMemory::sh_end_ptr' is not initialized in the constructor.
[src/mrcpp/MultiResolutionAnalysis.h:9]: (warning) The class 'MultiResolutionAnalysis' has 'copy constructor' but lack of 'operator='.
Checking src/mrcpp/parallel.cpp: HAVE_MPI...
[src/mrcpp/parallel.cpp:521]: (warning) %d in format string (no. 4) requires 'int' but the argument type is 'double *'.
Checking src/mrcpp/parallel.cpp: HAVE_OPENMP...
86/86 files checked 100% done
stigrj commented 5 years ago

Fixed through #148 and https://github.com/MRChemSoft/mrcpp/pull/53