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

Compilation warnings: arduino-core #18

Closed
matsujirushi opened this issue Sep 30, 2023 · 1 comment
Closed

Compilation warnings: arduino-core #18

matsujirushi opened this issue Sep 30, 2023 · 1 comment
Assignees
Labels
external library UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples

Comments

@matsujirushi
Copy link
Collaborator

  • SensirionRxFrame.cpp:58:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
  • SensirionRxFrame.cpp:75:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
  • SensirionRxFrame.cpp:112:20: warning: 'convert' may be used uninitialized in this function [-Wmaybe-uninitialized]
| 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
Copy link
Member

Thans you for the fixing Sensirion/arduino-core#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external library UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples
Projects
Status: Done
Development

No branches or pull requests

3 participants