Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #4298
Closed
Open
Issue created Jan 30, 2019 by James Willenbring@jmwilleOwner

Tpetra: "declaration shadows a typedef" warnings emitted by Apple clang 10.0.0

Created by: CamelliaDPG

@trilinos/tpetra

Expectations

Builds with clang that use the -Wshadow flag should not emit warnings.

Current Behavior

Three such warnings are emitted by clang when building MatrixMarket_Tpetra.hpp.

.../include/MatrixMarket_Tpetra.hpp:6896:56: warning: declaration shadows a typedef in 'Writer<SparseMatrixType>' [-Wshadow]
        typedef typename multivector_type::scalar_type scalar_type;
                                                       ^
.../include/MatrixMarket_Tpetra.hpp:5844:54: note: previous declaration is here
      typedef typename SparseMatrixType::scalar_type scalar_type;
                                                     ^
.../include/MatrixMarket_Tpetra.hpp:7021:56: warning: declaration shadows a typedef in 'Writer<SparseMatrixType>' [-Wshadow]
        typedef typename multivector_type::scalar_type scalar_type;
                                                       ^
.../include/MatrixMarket_Tpetra.hpp:5844:54: note: previous declaration is here
      typedef typename SparseMatrixType::scalar_type scalar_type;
                                                     ^
.../include/MatrixMarket_Tpetra.hpp:976:57: warning: declaration shadows a typedef in 'Reader<SparseMatrixType>' [-Wshadow]
        typedef typename ArrayView<const GO>::size_type size_type;
                                                        ^
.../include/MatrixMarket_Tpetra.hpp:220:49: note: previous declaration is here
      typedef Teuchos::ArrayRCP<int>::size_type size_type;

Environment

I'm building on a Mac using Apple clang 10.0.0.

Assignee
Assign to
Time tracking