Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: GeoVisualization - Fix compiler warning that's appearing in Athe…
…na (#2585) The athena compiler is throwing a warning if the Visualization library is loaded. ``` /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx: In member function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const': /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: warning: 'static' expression 'Acts::s_viewSensitive' of type 'Acts::ViewConfig' passed to pointer or reference function argument of 'Acts::GeometryView3D::drawDetectorVolume' within function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const'; may not be thread-safe 35 | Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:8: /build/ci-builds/main/Athena/install/AthenaExternals/24.0.15/InstallArea/x86_64-el9-gcc13-opt/include/Acts/Visualization/GeometryView3D.hpp:34:19: note: Declared here: 34 | static ViewConfig s_viewSensitive = ViewConfig({0, 180, 240}); | ^~~~~~~~~~~~~~~ /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: note: See <https://gitlab.cern.ch/atlas/atlasexternals/tree/master/External/CheckerGccPlugins#thread_plugin>. 35 | Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context()); ``` I hope that's fixing the warning.
- Loading branch information