vanvught / rpidmx512

Orange Pi DMX512 / RDM / MIDI / OSC / Art-Net / WS28xx / L6470 / Stepper / TLC59711 / PCA9685 / Servo / PWM / TCNet / SMPTE / RDMNet / LLRP / GD32 / GigaDevice / Raspberry Pi
http://www.orangepi-dmx.org/
MIT License
399 stars 108 forks source link

Github: Actions compile error #250

Closed vanvught closed 2 years ago

vanvught commented 2 years ago
src/node/artnetparams.cpp: In member function 'void ArtNetParams::callbackFunction(const char*)':
[424](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:425)
src/node/artnetparams.cpp:251:56: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[425](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:426)
  251 |    m_Params.nDirection &= artnetparams::portdir_clear(i);
[426](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:427)
      |                                                        ^
[427](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:428)
src/node/artnetparams.cpp:256:88: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[428](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:429)
  256 |     m_Params.nDirection |= artnetparams::portdir_shift_left(lightset::PortDir::INPUT, i);
[429](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:430)
      |                                                                                        ^
[430](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:431)
src/node/artnetparams.cpp:258:90: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[431](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:432)
  258 |     m_Params.nDirection |= artnetparams::portdir_shift_left(lightset::PortDir::DISABLE, i);
[432](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:433)
      |                                                                                          ^
[433](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:434)
src/node/artnetparams.cpp:260:89: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[434](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:435)
  260 |     m_Params.nDirection |= artnetparams::portdir_shift_left(lightset::PortDir::OUTPUT, i);
[435](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:436)
      |                                                                                         ^
[436](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:437)
src/node/artnetparams.cpp:280:47: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[437](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:438)
  280 |    m_Params.nRdm &= artnetparams::clear_mask(i);
[438](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:439)
      |                                               ^
[439](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:440)
src/node/artnetparams.cpp:283:51: error: conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} may change value [-Werror=conversion]
[440](https://github.com/vanvught/rpidmx512/runs/7581125353?check_suite_focus=true#step:6:441)
  283 |     m_Params.nRdm |= artnetparams::shift_left(1, i);