Encounter two warnings when make ndims=2 opt=-1.
g++ -g -std=c++0x -O0 -Wall -Wno-unused-variable -Wno-unused-function -Wno-unknown-pragmas -fbounds-check -ftrapv -Wno-sign-compare -Wno-comment -fsanitize=address -fopenmp -DGPP1X -Inanoflann/include -c monitor.cxx -o monitor.2d.o In file included from matprops.cxx:6: matprops.hpp: In constructor ‘MatProps::MatProps(const Param&, const Variables&)’: matprops.hpp:121:23: warning: ‘MatProps::dppressure’ will be initialized after [-Wreorder] 121 | const double_vec &dppressure; | ^~~~~~~~~~ matprops.hpp:105:23: warning: ‘const double_vec& MatProps::log_table’ [-Wreorder] 105 | const double_vec &log_table; | ^~~~~~~~~ matprops.cxx:172:1: warning: when initialized here [-Wreorder] 172 | MatProps::MatProps(const Param& p, const Variables& var) : | ^~~~~~~~
g++ -g -std=c++0x -O0 -Wall -Wno-unused-variable -Wno-unused-function -Wno-unknown-pragmas -fbounds-check -ftrapv -Wno-sign-compare -Wno-comment -fsanitize=address -fopenmp -DGPP1X -Inanoflann/include -c knn.cxx -o knn.2d.o In file included from knn.cxx:4: knn.hpp: In constructor ‘KNN::KNN(const Param&, const array_t&, NANOKDTree&, double)’: knn.hpp:40:15: warning: ‘KNN::resolution’ will be initialized after [-Wreorder] 40 | const int resolution; | ^~~~~~~~~~ knn.hpp:37:19: warning: ‘const double* KNN::points’ [-Wreorder] 37 | const double* points; | ^~~~~~ knn.cxx:103:1: warning: when initialized here [-Wreorder] 103 | KNN::KNN(const Param& param, const array_t& points_vec, NANOKDTree& nano_kdtree_, | ^~~ knn.hpp:43:17: warning: ‘KNN::nano_kdtree’ will be initialized after [-Wreorder] 43 | NANOKDTree& nano_kdtree; | ^~~~~~~~~~~ knn.hpp:41:15: warning: ‘const int KNN::resoTimes’ [-Wreorder] 41 | const int resoTimes; | ^~~~~~~~~ knn.cxx:103:1: warning: when initialized here [-Wreorder] 103 | KNN::KNN(const Param& param, const array_t& points_vec, NANOKDTree& nano_kdtree_, | ^~~
Encounter two warnings when
make ndims=2 opt=-1.g++ -g -std=c++0x -O0 -Wall -Wno-unused-variable -Wno-unused-function -Wno-unknown-pragmas -fbounds-check -ftrapv -Wno-sign-compare -Wno-comment -fsanitize=address -fopenmp -DGPP1X -Inanoflann/include -c monitor.cxx -o monitor.2d.o In file included from matprops.cxx:6: matprops.hpp: In constructor ‘MatProps::MatProps(const Param&, const Variables&)’: matprops.hpp:121:23: warning: ‘MatProps::dppressure’ will be initialized after [-Wreorder] 121 | const double_vec &dppressure; | ^~~~~~~~~~ matprops.hpp:105:23: warning: ‘const double_vec& MatProps::log_table’ [-Wreorder] 105 | const double_vec &log_table; | ^~~~~~~~~ matprops.cxx:172:1: warning: when initialized here [-Wreorder] 172 | MatProps::MatProps(const Param& p, const Variables& var) : | ^~~~~~~~g++ -g -std=c++0x -O0 -Wall -Wno-unused-variable -Wno-unused-function -Wno-unknown-pragmas -fbounds-check -ftrapv -Wno-sign-compare -Wno-comment -fsanitize=address -fopenmp -DGPP1X -Inanoflann/include -c knn.cxx -o knn.2d.o In file included from knn.cxx:4: knn.hpp: In constructor ‘KNN::KNN(const Param&, const array_t&, NANOKDTree&, double)’: knn.hpp:40:15: warning: ‘KNN::resolution’ will be initialized after [-Wreorder] 40 | const int resolution; | ^~~~~~~~~~ knn.hpp:37:19: warning: ‘const double* KNN::points’ [-Wreorder] 37 | const double* points; | ^~~~~~ knn.cxx:103:1: warning: when initialized here [-Wreorder] 103 | KNN::KNN(const Param& param, const array_t& points_vec, NANOKDTree& nano_kdtree_, | ^~~ knn.hpp:43:17: warning: ‘KNN::nano_kdtree’ will be initialized after [-Wreorder] 43 | NANOKDTree& nano_kdtree; | ^~~~~~~~~~~ knn.hpp:41:15: warning: ‘const int KNN::resoTimes’ [-Wreorder] 41 | const int resoTimes; | ^~~~~~~~~ knn.cxx:103:1: warning: when initialized here [-Wreorder] 103 | KNN::KNN(const Param& param, const array_t& points_vec, NANOKDTree& nano_kdtree_, | ^~~