mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Always export VTK-m functor symbols
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::<anonymous>’ [-Wattributes] class WorkletMapField : public vtkm::worklet::internal::WorkletBase ^~~~~~~~~~~~~~~ ```
This commit is contained in:
parent
2eeeafc1f5
commit
d8cc39eb8d
@ -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
|
||||
|
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user