jeromerobert / hmat-oss

A hierarchical matrix C/C++ library
GNU General Public License v2.0
22 stars 11 forks source link

attribute shadowing #34

Closed jschueller closed 9 years ago

jschueller commented 9 years ago

there's no convention on how to name attributes (for example prefix with an underscore), as a consequence there are a lot of wshadow warnings, maybe this could lead to an error one day, be careful:

[  5%] Building CXX object CMakeFiles/hmat-oss.dir/src/default_engine.cpp.o
[ 11%] Building CXX object CMakeFiles/hmat-oss.dir/src/rk_matrix.cpp.o                                                                                                                          
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp: In member function ‘void hmat::RkMatrix<T>::gemmRk(char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*, T)’:
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:641:18: warning: declaration of ‘k’ shadows a member of ‘hmat::RkMatrix<T>’ [-Wshadow]
         for (int k = 0; k < 2; k++) {
                  ^
In file included from /home/xantares/projects/hmat-oss/src/rk_matrix.cpp:23:0:
/home/xantares/projects/hmat-oss/src/rk_matrix.hpp:83:7: note: shadowed declaration is here
   int k; /// Rank
       ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:650:14: warning: declaration of ‘T alpha [4]’ shadows a parameter [-Wshadow]
     T alpha[4] = {Constants<T>::pone, Constants<T>::pone, Constants<T>::pone, Constants<T>::pone};
              ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:629:49: note: shadowed declaration is here
                                               T alpha, const HMatrix<T>* ha, const HMatrix<T>* hb, T beta) {
                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp: In instantiation of ‘void hmat::RkMatrix<T>::gemmRk(char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*, T) [with T = float]’:
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:702:16:   required from here
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:641:22: warning: declaration of ‘k’ shadows a member of ‘hmat::RkMatrix<float>’ [-Wshadow]
         for (int k = 0; k < 2; k++) {
                      ^
In file included from /home/xantares/projects/hmat-oss/src/rk_matrix.cpp:23:0:
/home/xantares/projects/hmat-oss/src/rk_matrix.hpp:83:7: note: shadowed declaration is here
   int k; /// Rank
       ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:650:97: warning: declaration of ‘float alpha [4]’ shadows a parameter [-Wshadow]
     T alpha[4] = {Constants<T>::pone, Constants<T>::pone, Constants<T>::pone, Constants<T>::pone};
                                                                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:629:49: note: shadowed declaration is here
                                               T alpha, const HMatrix<T>* ha, const HMatrix<T>* hb, T beta) {
                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp: In instantiation of ‘void hmat::RkMatrix<T>::gemmRk(char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*, T) [with T = double]’:
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:703:16:   required from here
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:641:22: warning: declaration of ‘k’ shadows a member of ‘hmat::RkMatrix<double>’ [-Wshadow]
         for (int k = 0; k < 2; k++) {
                      ^
In file included from /home/xantares/projects/hmat-oss/src/rk_matrix.cpp:23:0:
/home/xantares/projects/hmat-oss/src/rk_matrix.hpp:83:7: note: shadowed declaration is here
   int k; /// Rank
       ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:650:97: warning: declaration of ‘double alpha [4]’ shadows a parameter [-Wshadow]
     T alpha[4] = {Constants<T>::pone, Constants<T>::pone, Constants<T>::pone, Constants<T>::pone};
                                                                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:629:49: note: shadowed declaration is here
                                               T alpha, const HMatrix<T>* ha, const HMatrix<T>* hb, T beta) {
                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp: In instantiation of ‘void hmat::RkMatrix<T>::gemmRk(char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*, T) [with T = std::complex<float>]’:
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:704:16:   required from here
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:641:22: warning: declaration of ‘k’ shadows a member of ‘hmat::RkMatrix<std::complex<float> >’ [-Wshadow]
         for (int k = 0; k < 2; k++) {
                      ^
In file included from /home/xantares/projects/hmat-oss/src/rk_matrix.cpp:23:0:
/home/xantares/projects/hmat-oss/src/rk_matrix.hpp:83:7: note: shadowed declaration is here
   int k; /// Rank
       ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:650:97: warning: declaration of ‘std::complex<float> alpha [4]’ shadows a parameter [-Wshadow]
     T alpha[4] = {Constants<T>::pone, Constants<T>::pone, Constants<T>::pone, Constants<T>::pone};
                                                                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:629:49: note: shadowed declaration is here
                                               T alpha, const HMatrix<T>* ha, const HMatrix<T>* hb, T beta) {
                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp: In instantiation of ‘void hmat::RkMatrix<T>::gemmRk(char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*, T) [with T = std::complex<double>]’:
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:705:16:   required from here
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:641:22: warning: declaration of ‘k’ shadows a member of ‘hmat::RkMatrix<std::complex<double> >’ [-Wshadow]
         for (int k = 0; k < 2; k++) {
                      ^
In file included from /home/xantares/projects/hmat-oss/src/rk_matrix.cpp:23:0:
/home/xantares/projects/hmat-oss/src/rk_matrix.hpp:83:7: note: shadowed declaration is here
   int k; /// Rank
       ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:650:97: warning: declaration of ‘std::complex<double> alpha [4]’ shadows a parameter [-Wshadow]
     T alpha[4] = {Constants<T>::pone, Constants<T>::pone, Constants<T>::pone, Constants<T>::pone};
                                                                                                 ^
/home/xantares/projects/hmat-oss/src/rk_matrix.cpp:629:49: note: shadowed declaration is here
                                               T alpha, const HMatrix<T>* ha, const HMatrix<T>* hb, T beta) {
                                                 ^
[ 16%] Building CXX object CMakeFiles/hmat-oss.dir/src/cluster_tree.cpp.o
[ 22%] Building CXX object CMakeFiles/hmat-oss.dir/src/full_matrix.cpp.o                                                                                                                        
/home/xantares/projects/hmat-oss/src/full_matrix.cpp: In member function ‘void hmat::FullMatrix<T>::gemm(char, char, T, const hmat::FullMatrix<T>*, const hmat::FullMatrix<T>*, T)’:
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:279:7: warning: declaration of ‘m’ shadows a member of ‘hmat::FullMatrix<T>’ [-Wshadow]
   int m = (transA == 'N' ? a->rows : a->cols);
       ^
In file included from /home/xantares/projects/hmat-oss/src/full_matrix.cpp:35:0:
/home/xantares/projects/hmat-oss/src/full_matrix.hpp:49:6: note: shadowed declaration is here
   T* m;
      ^
/home/xantares/projects/hmat-oss/src/full_matrix.cpp: In instantiation of ‘void hmat::FullMatrix<T>::gemm(char, char, T, const hmat::FullMatrix<T>*, const hmat::FullMatrix<T>*, T) [with T = float]’:
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:826:16:   required from here
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:279:45: warning: declaration of ‘m’ shadows a member of ‘hmat::FullMatrix<float>’ [-Wshadow]
   int m = (transA == 'N' ? a->rows : a->cols);
                                             ^
In file included from /home/xantares/projects/hmat-oss/src/full_matrix.cpp:35:0:
/home/xantares/projects/hmat-oss/src/full_matrix.hpp:49:6: note: shadowed declaration is here
   T* m;
      ^
/home/xantares/projects/hmat-oss/src/full_matrix.cpp: In instantiation of ‘void hmat::FullMatrix<T>::gemm(char, char, T, const hmat::FullMatrix<T>*, const hmat::FullMatrix<T>*, T) [with T = double]’:
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:827:16:   required from here
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:279:45: warning: declaration of ‘m’ shadows a member of ‘hmat::FullMatrix<double>’ [-Wshadow]
   int m = (transA == 'N' ? a->rows : a->cols);
                                             ^
In file included from /home/xantares/projects/hmat-oss/src/full_matrix.cpp:35:0:
/home/xantares/projects/hmat-oss/src/full_matrix.hpp:49:6: note: shadowed declaration is here
   T* m;
      ^
/home/xantares/projects/hmat-oss/src/full_matrix.cpp: In instantiation of ‘void hmat::FullMatrix<T>::gemm(char, char, T, const hmat::FullMatrix<T>*, const hmat::FullMatrix<T>*, T) [with T = std::complex<float>]’:
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:828:16:   required from here
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:279:45: warning: declaration of ‘m’ shadows a member of ‘hmat::FullMatrix<std::complex<float> >’ [-Wshadow]
   int m = (transA == 'N' ? a->rows : a->cols);
                                             ^
In file included from /home/xantares/projects/hmat-oss/src/full_matrix.cpp:35:0:
/home/xantares/projects/hmat-oss/src/full_matrix.hpp:49:6: note: shadowed declaration is here
   T* m;
      ^
/home/xantares/projects/hmat-oss/src/full_matrix.cpp: In instantiation of ‘void hmat::FullMatrix<T>::gemm(char, char, T, const hmat::FullMatrix<T>*, const hmat::FullMatrix<T>*, T) [with T = std::complex<double>]’:
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:829:16:   required from here
/home/xantares/projects/hmat-oss/src/full_matrix.cpp:279:45: warning: declaration of ‘m’ shadows a member of ‘hmat::FullMatrix<std::complex<double> >’ [-Wshadow]
   int m = (transA == 'N' ? a->rows : a->cols);
                                             ^
In file included from /home/xantares/projects/hmat-oss/src/full_matrix.cpp:35:0:
/home/xantares/projects/hmat-oss/src/full_matrix.hpp:49:6: note: shadowed declaration is here
   T* m;
      ^
[ 27%] Building CXX object CMakeFiles/hmat-oss.dir/src/compression.cpp.o
[ 33%] Building CXX object CMakeFiles/hmat-oss.dir/src/disable_threading.cpp.o                                                                                                                  
[ 38%] Building CXX object CMakeFiles/hmat-oss.dir/src/postscript.cpp.o                                                                                                                         
/home/xantares/projects/hmat-oss/src/postscript.cpp: In member function ‘virtual void hmat::PostscriptDumper<T>::drawMatrix(const hmat::Tree<4>*, const hmat::HMatrix<T>*, std::ofstream&, int, double, bool) const’:
/home/xantares/projects/hmat-oss/src/postscript.cpp:192:13: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
         int n = m->rows()->coordinates()->size();
             ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:160:9: note: shadowed declaration is here
     int n = m->rows()->coordinates()->size();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:193:13: warning: declaration of ‘startX’ shadows a previous local [-Wshadow]
         int startX = m->cols()->offset();
             ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:161:9: note: shadowed declaration is here
     int startX = m->cols()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:194:13: warning: declaration of ‘startY’ shadows a previous local [-Wshadow]
         int startY = m->rows()->offset();
             ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:163:9: note: shadowed declaration is here
     int startY = n - m->rows()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp: In instantiation of ‘void hmat::PostscriptDumper<T>::drawMatrix(const hmat::Tree<4>*, const hmat::HMatrix<T>*, std::ofstream&, int, double, bool) const [with T = float; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/postscript.cpp:207:16:   required from here
/home/xantares/projects/hmat-oss/src/postscript.cpp:192:48: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
         int n = m->rows()->coordinates()->size();
                                                ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:160:9: note: shadowed declaration is here
     int n = m->rows()->coordinates()->size();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:193:40: warning: declaration of ‘startX’ shadows a previous local [-Wshadow]
         int startX = m->cols()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:161:9: note: shadowed declaration is here
     int startX = m->cols()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:194:40: warning: declaration of ‘startY’ shadows a previous local [-Wshadow]
         int startY = m->rows()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:163:9: note: shadowed declaration is here
     int startY = n - m->rows()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp: In instantiation of ‘void hmat::PostscriptDumper<T>::drawMatrix(const hmat::Tree<4>*, const hmat::HMatrix<T>*, std::ofstream&, int, double, bool) const [with T = double; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/postscript.cpp:208:16:   required from here
/home/xantares/projects/hmat-oss/src/postscript.cpp:192:48: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
         int n = m->rows()->coordinates()->size();
                                                ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:160:9: note: shadowed declaration is here
     int n = m->rows()->coordinates()->size();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:193:40: warning: declaration of ‘startX’ shadows a previous local [-Wshadow]
         int startX = m->cols()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:161:9: note: shadowed declaration is here
     int startX = m->cols()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:194:40: warning: declaration of ‘startY’ shadows a previous local [-Wshadow]
         int startY = m->rows()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:163:9: note: shadowed declaration is here
     int startY = n - m->rows()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp: In instantiation of ‘void hmat::PostscriptDumper<T>::drawMatrix(const hmat::Tree<4>*, const hmat::HMatrix<T>*, std::ofstream&, int, double, bool) const [with T = std::complex<float>; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/postscript.cpp:209:16:   required from here
/home/xantares/projects/hmat-oss/src/postscript.cpp:192:48: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
         int n = m->rows()->coordinates()->size();
                                                ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:160:9: note: shadowed declaration is here
     int n = m->rows()->coordinates()->size();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:193:40: warning: declaration of ‘startX’ shadows a previous local [-Wshadow]
         int startX = m->cols()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:161:9: note: shadowed declaration is here
     int startX = m->cols()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:194:40: warning: declaration of ‘startY’ shadows a previous local [-Wshadow]
         int startY = m->rows()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:163:9: note: shadowed declaration is here
     int startY = n - m->rows()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp: In instantiation of ‘void hmat::PostscriptDumper<T>::drawMatrix(const hmat::Tree<4>*, const hmat::HMatrix<T>*, std::ofstream&, int, double, bool) const [with T = std::complex<double>; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/postscript.cpp:210:16:   required from here
/home/xantares/projects/hmat-oss/src/postscript.cpp:192:48: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
         int n = m->rows()->coordinates()->size();
                                                ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:160:9: note: shadowed declaration is here
     int n = m->rows()->coordinates()->size();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:193:40: warning: declaration of ‘startX’ shadows a previous local [-Wshadow]
         int startX = m->cols()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:161:9: note: shadowed declaration is here
     int startX = m->cols()->offset();
         ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:194:40: warning: declaration of ‘startY’ shadows a previous local [-Wshadow]
         int startY = m->rows()->offset();
                                        ^
/home/xantares/projects/hmat-oss/src/postscript.cpp:163:9: note: shadowed declaration is here
     int startY = n - m->rows()->offset();
         ^
[ 44%] Building CXX object CMakeFiles/hmat-oss.dir/src/assembly.cpp.o
/home/xantares/projects/hmat-oss/src/assembly.cpp: In constructor ‘hmat::BlockFunction<T>::BlockFunction(const hmat::ClusterData*, const hmat::ClusterData*, void*, hmat_prepare_func_t, hmat_compute_func_t)’:
/home/xantares/projects/hmat-oss/src/assembly.cpp:107:79: warning: declaration of ‘matrixUserData’ shadows a member of ‘hmat::BlockFunction<T>’ [-Wshadow]
                                                   hmat_compute_func_t _compute)
                                                                               ^
In file included from /home/xantares/projects/hmat-oss/src/assembly.cpp:24:0:
/home/xantares/projects/hmat-oss/src/assembly.hpp:184:9: note: shadowed declaration is here
   void* matrixUserData;
         ^
/home/xantares/projects/hmat-oss/src/assembly.cpp: In instantiation of ‘hmat::BlockFunction<T>::BlockFunction(const hmat::ClusterData*, const hmat::ClusterData*, void*, hmat_prepare_func_t, hmat_compute_func_t) [with T = float; hmat_prepare_func_t = void (*)(int, int, int, int, int*, int*, int*, int*, void*, hmat_block_info_t_struct*); hmat_block_info_t = hmat_block_info_t_struct; hmat_compute_func_t = void (*)(void*, int, int, int, int, void*)]’:
/home/xantares/projects/hmat-oss/src/assembly.cpp:192:16:   required from here
/home/xantares/projects/hmat-oss/src/assembly.cpp:103:1: warning: declaration of ‘matrixUserData’ shadows a member of ‘hmat::BlockFunction<float>’ [-Wshadow]
 BlockFunction<T>::BlockFunction(const ClusterData* rowData,
 ^
In file included from /home/xantares/projects/hmat-oss/src/assembly.cpp:24:0:
/home/xantares/projects/hmat-oss/src/assembly.hpp:184:9: note: shadowed declaration is here
   void* matrixUserData;
         ^
/home/xantares/projects/hmat-oss/src/assembly.cpp: In instantiation of ‘hmat::BlockFunction<T>::BlockFunction(const hmat::ClusterData*, const hmat::ClusterData*, void*, hmat_prepare_func_t, hmat_compute_func_t) [with T = double; hmat_prepare_func_t = void (*)(int, int, int, int, int*, int*, int*, int*, void*, hmat_block_info_t_struct*); hmat_block_info_t = hmat_block_info_t_struct; hmat_compute_func_t = void (*)(void*, int, int, int, int, void*)]’:
/home/xantares/projects/hmat-oss/src/assembly.cpp:193:16:   required from here
/home/xantares/projects/hmat-oss/src/assembly.cpp:103:1: warning: declaration of ‘matrixUserData’ shadows a member of ‘hmat::BlockFunction<double>’ [-Wshadow]
 BlockFunction<T>::BlockFunction(const ClusterData* rowData,
 ^
In file included from /home/xantares/projects/hmat-oss/src/assembly.cpp:24:0:
/home/xantares/projects/hmat-oss/src/assembly.hpp:184:9: note: shadowed declaration is here
   void* matrixUserData;
         ^
/home/xantares/projects/hmat-oss/src/assembly.cpp: In instantiation of ‘hmat::BlockFunction<T>::BlockFunction(const hmat::ClusterData*, const hmat::ClusterData*, void*, hmat_prepare_func_t, hmat_compute_func_t) [with T = std::complex<float>; hmat_prepare_func_t = void (*)(int, int, int, int, int*, int*, int*, int*, void*, hmat_block_info_t_struct*); hmat_block_info_t = hmat_block_info_t_struct; hmat_compute_func_t = void (*)(void*, int, int, int, int, void*)]’:
/home/xantares/projects/hmat-oss/src/assembly.cpp:194:16:   required from here
/home/xantares/projects/hmat-oss/src/assembly.cpp:103:1: warning: declaration of ‘matrixUserData’ shadows a member of ‘hmat::BlockFunction<std::complex<float> >’ [-Wshadow]
 BlockFunction<T>::BlockFunction(const ClusterData* rowData,
 ^
In file included from /home/xantares/projects/hmat-oss/src/assembly.cpp:24:0:
/home/xantares/projects/hmat-oss/src/assembly.hpp:184:9: note: shadowed declaration is here
   void* matrixUserData;
         ^
/home/xantares/projects/hmat-oss/src/assembly.cpp: In instantiation of ‘hmat::BlockFunction<T>::BlockFunction(const hmat::ClusterData*, const hmat::ClusterData*, void*, hmat_prepare_func_t, hmat_compute_func_t) [with T = std::complex<double>; hmat_prepare_func_t = void (*)(int, int, int, int, int*, int*, int*, int*, void*, hmat_block_info_t_struct*); hmat_block_info_t = hmat_block_info_t_struct; hmat_compute_func_t = void (*)(void*, int, int, int, int, void*)]’:
/home/xantares/projects/hmat-oss/src/assembly.cpp:195:16:   required from here
/home/xantares/projects/hmat-oss/src/assembly.cpp:103:1: warning: declaration of ‘matrixUserData’ shadows a member of ‘hmat::BlockFunction<std::complex<double> >’ [-Wshadow]
 BlockFunction<T>::BlockFunction(const ClusterData* rowData,
 ^
In file included from /home/xantares/projects/hmat-oss/src/assembly.cpp:24:0:
/home/xantares/projects/hmat-oss/src/assembly.hpp:184:9: note: shadowed declaration is here
   void* matrixUserData;
         ^
[ 50%] Building CXX object CMakeFiles/hmat-oss.dir/src/common/memory_instrumentation.cpp.o
[ 55%] Building CXX object CMakeFiles/hmat-oss.dir/src/common/context.cpp.o                                                                                                                     
/home/xantares/projects/hmat-oss/src/common/context.cpp: In member function ‘trace::Node* trace::Node::findChild(const char*) const’:
/home/xantares/projects/hmat-oss/src/common/context.cpp:120:43: warning: declaration of ‘name’ shadows a member of ‘trace::Node’ [-Wshadow]
   Node* Node::findChild(const char* name) const {
                                           ^
In file included from /home/xantares/projects/hmat-oss/src/common/context.cpp:25:0:
/home/xantares/projects/hmat-oss/src/common/context.hpp:79:17: note: shadowed declaration is here
     const char* name;
                 ^
[ 61%] Building CXX object CMakeFiles/hmat-oss.dir/src/fromdouble.cpp.o
[ 66%] Building CXX object CMakeFiles/hmat-oss.dir/src/data_types.cpp.o                                                                                                                         
[ 72%] Building CXX object CMakeFiles/hmat-oss.dir/src/clustering.cpp.o                                                                                                                         
[ 77%] Building CXX object CMakeFiles/hmat-oss.dir/src/h_matrix.cpp.o                                                                                                                           
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In member function ‘void hmat::HMatrix<T>::dumpSubTree(std::ofstream&, int, const hmat::HMatrixNodeDumper<T>&) const’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1325:94: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<T>’ [-Wshadow]
 void HMatrix<T>::dumpSubTree(ofstream& f, int depth, const HMatrixNodeDumper<T>& nodeDumper) const {
                                                                                              ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In member function ‘void hmat::HMatrix<T>::inverse(hmat::HMatrix<T>*, int)’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1462:52: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<T>’ [-Wshadow]
 void HMatrix<T>::inverse(HMatrix<T>* tmp, int depth) {
                                                    ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::inverse(hmat::HMatrix<T>*, int) [with T = float]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2206:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1462:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<float>’ [-Wshadow]
 void HMatrix<T>::inverse(HMatrix<T>* tmp, int depth) {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::dumpSubTree(std::ofstream&, int, const hmat::HMatrixNodeDumper<T>&) const [with T = float; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2206:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1325:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<float>’ [-Wshadow]
 void HMatrix<T>::dumpSubTree(ofstream& f, int depth, const HMatrixNodeDumper<T>& nodeDumper) const {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::inverse(hmat::HMatrix<T>*, int) [with T = double]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2207:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1462:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<double>’ [-Wshadow]
 void HMatrix<T>::inverse(HMatrix<T>* tmp, int depth) {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::dumpSubTree(std::ofstream&, int, const hmat::HMatrixNodeDumper<T>&) const [with T = double; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2207:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1325:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<double>’ [-Wshadow]
 void HMatrix<T>::dumpSubTree(ofstream& f, int depth, const HMatrixNodeDumper<T>& nodeDumper) const {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::inverse(hmat::HMatrix<T>*, int) [with T = std::complex<float>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2208:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1462:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<std::complex<float> >’ [-Wshadow]
 void HMatrix<T>::inverse(HMatrix<T>* tmp, int depth) {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::dumpSubTree(std::ofstream&, int, const hmat::HMatrixNodeDumper<T>&) const [with T = std::complex<float>; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2208:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1325:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<std::complex<float> >’ [-Wshadow]
 void HMatrix<T>::dumpSubTree(ofstream& f, int depth, const HMatrixNodeDumper<T>& nodeDumper) const {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::inverse(hmat::HMatrix<T>*, int) [with T = std::complex<double>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2209:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1462:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<std::complex<double> >’ [-Wshadow]
 void HMatrix<T>::inverse(HMatrix<T>* tmp, int depth) {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
/home/xantares/projects/hmat-oss/src/h_matrix.cpp: In instantiation of ‘void hmat::HMatrix<T>::dumpSubTree(std::ofstream&, int, const hmat::HMatrixNodeDumper<T>&) const [with T = std::complex<double>; std::ofstream = std::basic_ofstream<char>]’:
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:2209:16:   required from here
/home/xantares/projects/hmat-oss/src/h_matrix.cpp:1325:6: warning: declaration of ‘depth’ shadows a member of ‘hmat::HMatrix<std::complex<double> >’ [-Wshadow]
 void HMatrix<T>::dumpSubTree(ofstream& f, int depth, const HMatrixNodeDumper<T>& nodeDumper) const {
      ^
In file included from /home/xantares/projects/hmat-oss/src/h_matrix.hpp:30:0,
                 from /home/xantares/projects/hmat-oss/src/h_matrix.cpp:34:
/home/xantares/projects/hmat-oss/src/tree.hpp:43:7: note: shadowed declaration is here
   int depth;
       ^
[ 83%] Building CXX object CMakeFiles/hmat-oss.dir/src/coordinates.cpp.o
[ 88%] Building CXX object CMakeFiles/hmat-oss.dir/src/lapack_operations.cpp.o
[ 94%] Building CXX object CMakeFiles/hmat-oss.dir/src/admissibility.cpp.o
/home/xantares/projects/hmat-oss/src/admissibility.cpp: In constructor ‘hmat::StandardAdmissibilityCondition::StandardAdmissibilityCondition(double, size_t)’:
/home/xantares/projects/hmat-oss/src/admissibility.cpp:35:43: warning: declaration of ‘maxElementsPerBlock’ shadows a member of ‘hmat::StandardAdmissibilityCondition’ [-Wshadow]
     double eta, size_t maxElementsPerBlock):
                                           ^
In file included from /home/xantares/projects/hmat-oss/src/admissibility.cpp:23:0:
/home/xantares/projects/hmat-oss/src/admissibility.hpp:76:10: note: shadowed declaration is here
   size_t maxElementsPerBlock;
          ^