Seeed-Studio / Wio_Tracker_1110_Examples

arduino examples for Wio_tracker board
Other
2 stars 4 forks source link

Compilation warnings: arduino-core #18

Closed matsujirushi closed 1 week ago

matsujirushi commented 1 year ago
| Wio_Tracker_1110_Examples | grove_gas_sgp41.ino                 | warnings  |  7.98s |
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf[52](https://github.com/SeeedJP/Adafruit_nRF52_Arduino_priv/actions/runs/6358400379/job/17270588570#step:6:53)/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp: In member function 'uint16_t SensirionRxFrame::getInt32(int32_t&)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp:[58](https://github.com/SeeedJP/Adafruit_nRF52_Arduino_priv/actions/runs/6358400379/job/17270588570#step:6:59):12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
   58 |     data = static_cast<int32_t>(ret);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp: In member function 'uint16_t SensirionRxFrame::getInt16(int16_t&)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp:75:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
   75 |     data = static_cast<int16_t>(ret);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp: In member function 'uint16_t SensirionRxFrame::getFloat(float&)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp:112:20: warning: 'convert' may be used uninitialized in this function [-Wmaybe-uninitialized]
  112 |     data = convert.floatData;
      |            ~~~~~~~~^~~~~~~~~
KillingJacky commented 1 week ago

Thans you for the fixing https://github.com/Sensirion/arduino-core/pull/5