Tpetra: shadow warnings
Created by: rppawlo
Did a clean build of trilinos this morning and get a ton of repeated shadow warnings with gcc7.2:
/ascldap/users/rppawlo/junk/ALBANY/Trilinos/packages/xpetra/src/CrsMatrix/Xpetra_CrsMatrixFactory.hpp:351:131: required from here
/ascldap/users/rppawlo/junk/ALBANY/Trilinos/packages/tpetra/core/src/Tpetra_Details_packCrsMatrix.hpp:473:12: warning: declaration of ‘gid’ shadows a previous local [-Wshadow]
GO gid = col_map.getGlobalElement(lids_in[k]);
^~~
/ascldap/users/rppawlo/junk/ALBANY/Trilinos/packages/tpetra/core/src/Tpetra_Details_packCrsMatrix.hpp:442:14: note: shadowed declaration is here
const GO gid = 0; // packValueCount wants this
^~~
/ascldap/users/rppawlo/junk/ALBANY/Trilinos/packages/tpetra/core/src/Tpetra_Details_packCrsMatrix.hpp:480:15: warning: declaration of ‘pid’ shadows a previous local [-Wshadow]
int pid = pids_in[lids_in[k]];
^~~
/ascldap/users/rppawlo/junk/ALBANY/Trilinos/packages/tpetra/core/src/Tpetra_Details_packCrsMatrix.hpp:447:15: note: shadowed declaration is here
const int pid = 0; // packValueCount wants this
^~~