eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

Home Page:http://mraa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The code seems to use deprecated code

jpelletier opened this issue · comments

Here, I recompile the example in c++:

Scanning dependencies of target gpio_cpp
[ 78%] Building CXX object examples/c++/CMakeFiles/gpio_cpp.dir/gpio.cpp.o
In file included from /home/linaro/Documents/src/96boards/mraa/examples/c++/gpio.cpp:19:
/home/linaro/Documents/src/96boards/mraa/api/mraa/gpio.hpp: In member function 'mraa::Result mraa::Gpio::useMmap(bool)':
/home/linaro/Documents/src/96boards/mraa/api/mraa/gpio.hpp:319:77: warning: 'mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context, mraa_boolean_t)' is deprecated [-Wdeprecated-declarations]
319 | return (Result) mraa_gpio_use_mmaped(m_gpio, (mraa_boolean_t) enable);
| ^
In file included from /home/linaro/Documents/src/96boards/mraa/api/mraa/gpio.hpp:29,
from /home/linaro/Documents/src/96boards/mraa/examples/c++/gpio.cpp:19:
/home/linaro/Documents/src/96boards/mraa/api/mraa/gpio.h:289:26: note: declared here
289 | DEPRECATED mraa_result_t mraa_gpio_use_mmaped(mraa_gpio_context dev, mraa_boolean_t mmap);
| ^~~~~~~~~~~~~~~~~~~~