Skip to content

modm::sab warning: cast between incompatible pointer to member types from #257

@strongly-typed

Description

@strongly-typed
In file included from main.cpp:21:
modm/src/modm/communication/sab/slave.hpp:275:59: warning: cast between incompatible pointer to member types from 'void (InOut::*)(modm::sab::Response&)' to 'modm::sab::Action::Callback' {aka 'void (modm::sab::Callable::*)(modm::sab::Response&, const void*)'} [-Wcast-function-type]
  275 |    reinterpret_cast<modm::sab::Action::Callback>(&function), \
      |                                                           ^
main.cpp:87:2: note: in expansion of macro 'SAB_ACTION'
   87 |  SAB_ACTION( 'I', inOut,   InOut::readInput,   0 ),
      |  ^~~~~~~~~~

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions