Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,848
    • Issues 1,848
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 87
    • Merge requests 87
  • 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
  • ParaView
  • ParaViewParaView
  • Issues
  • #20587

Closed
Open
Created Mar 23, 2021 by Mathieu Westphal@mwestphalMaintainer

[dashboards] vtkPVPlotMatrixView warnings

on paraview-branch-master-[fedora33_static_mpi_offscreen_osmesa_python]

https://open.cdash.org/viewBuildError.php?type=1&buildid=7115606

../Remoting/Views/vtkPVPlotMatrixView.cxx:637:29: warning: function may return address of local variable [-Wreturn-local-addr]

  637 |                           : nullptr;


../Remoting/Views/vtkPVPlotMatrixView.cxx:636:89: note: declared here

  636 |   return this->PlotMatrix ? this->PlotMatrix->GetBackgroundColor(plotType).Cast<double>().GetData()
      |                                                                                         ^
../Remoting/Views/vtkPVPlotMatrixView.cxx: In member function 'double* vtkPVPlotMatrixView::GetAxisColor(int)':
../Remoting/Views/vtkPVPlotMatrixView.cxx:644:29: warning: function may return address of local variable [-Wreturn-local-addr]

  644 |                           : nullptr;
      |                             ^~~~~~~


../Remoting/Views/vtkPVPlotMatrixView.cxx:643:83: note: declared here

  643 |   return this->PlotMatrix ? this->PlotMatrix->GetAxisColor(plotType).Cast<double>().GetData()
      |                                                                                   ^
../Remoting/Views/vtkPVPlotMatrixView.cxx: In member function 'double* vtkPVPlotMatrixView::GetGridColor(int)':
../Remoting/Views/vtkPVPlotMatrixView.cxx:651:29: warning: function may return address of local variable [-Wreturn-local-addr]

  651 |                           : nullptr;
      |                             ^~~~~~~

../Remoting/Views/vtkPVPlotMatrixView.cxx:650:83: note: declared here

  650 |   return this->PlotMatrix ? this->PlotMatrix->GetGridColor(plotType).Cast<double>().GetData()
      |                                                                                   ^
../Remoting/Views/vtkPVPlotMatrixView.cxx: In member function 'double* vtkPVPlotMatrixView::GetScatterPlotSelectedRowColumnColor()':
../Remoting/Views/vtkPVPlotMatrixView.cxx:720:7: warning: function may return address of local variable [-Wreturn-local-addr]

  720 |     : nullptr;
      |       ^~~~~~~

../Remoting/Views/vtkPVPlotMatrixView.cxx:719:77: note: declared here

  719 |     ? this->PlotMatrix->GetScatterPlotSelectedRowColumnColor().Cast<double>().GetData()
      |                                                                             ^
../Remoting/Views/vtkPVPlotMatrixView.cxx: In member function 'double* vtkPVPlotMatrixView::GetScatterPlotSelectedActiveColor()':
../Remoting/Views/vtkPVPlotMatrixView.cxx:728:7: warning: function may return address of local variable [-Wreturn-local-addr]

  728 |     : nullptr;
      |       ^~~~~~~


../Remoting/Views/vtkPVPlotMatrixView.cxx:727:74: note: declared here

  727 |     ? this->PlotMatrix->GetScatterPlotSelectedActiveColor().Cast<double>().GetData()
      |   
                                                                   ^
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking