From d8cc39eb8def8099a875910069162e876e60e028 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Thu, 1 Aug 2019 12:53:54 -0400 Subject: [PATCH] Always export VTK-m functor symbols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is done to avoid warnings when compiling VTK-m consumers with different defaults for symbol visiblity. AKA avoid warnings like: ``` warning: ‘vtkm::worklet::WorkletMapField’ declared with greater visibility than the type of its field ‘vtkm::worklet::WorkletMapField::’ [-Wattributes] class WorkletMapField : public vtkm::worklet::internal::WorkletBase ^~~~~~~~~~~~~~~ ``` --- vtkm/exec/FunctorBase.h | 2 +- vtkm/worklet/internal/WorkletBase.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vtkm/exec/FunctorBase.h b/vtkm/exec/FunctorBase.h index 712e8ecf5..4de38bde0 100644 --- a/vtkm/exec/FunctorBase.h +++ b/vtkm/exec/FunctorBase.h @@ -27,7 +27,7 @@ namespace exec /// This class contains a public method named RaiseError that can be called in /// the execution environment to signal a problem. /// -class VTKM_NEVER_EXPORT FunctorBase +class VTKM_ALWAYS_EXPORT FunctorBase { public: VTKM_EXEC_CONT diff --git a/vtkm/worklet/internal/WorkletBase.h b/vtkm/worklet/internal/WorkletBase.h index b28f5e4a1..51f856e6f 100644 --- a/vtkm/worklet/internal/WorkletBase.h +++ b/vtkm/worklet/internal/WorkletBase.h @@ -61,7 +61,7 @@ namespace internal /// operator() const is added to implement an algorithm in VTK-m. Different /// worklets have different calling semantics. /// -class VTKM_NEVER_EXPORT WorkletBase : public vtkm::exec::FunctorBase +class VTKM_ALWAYS_EXPORT WorkletBase : public vtkm::exec::FunctorBase { public: using _1 = vtkm::placeholders::Arg<1>;