Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
strongly-typed opened this issue Jul 25, 2019 · 3 comments

Comments

@strongly-typed
Copy link
Collaborator

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 ),
      |  ^~~~~~~~~~
@salkinium
Copy link
Member

That's not new. I'll be using SAB in the ELVA project so I'll property fix it then.

@salkinium salkinium self-assigned this Sep 9, 2019
@salkinium
Copy link
Member

Turned out I implemented an entirely new protocol called AMNB and these issues are still not fixed 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants