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: Seeed_Arduino_DPS310 #17

Closed
matsujirushi opened this issue Sep 30, 2023 · 0 comments · Fixed by Seeed-Studio/Seeed_Arduino_DPS310#1
Closed

Compilation warnings: Seeed_Arduino_DPS310 #17

matsujirushi opened this issue Sep 30, 2023 · 0 comments · Fixed by Seeed-Studio/Seeed_Arduino_DPS310#1
Assignees
Labels
external library UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples

Comments

@matsujirushi
Copy link
Collaborator

  • Dps310.cpp:84:13: warning: unused variable 'ret' [-Wunused-variable]
  • DpsClass.cpp:171:42: warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
  • DpsClass.cpp:163:21: note: 'raw_val' was declared here
| Wio_Tracker_1110_Examples | grove_barometer_dps310.ino          | warnings  |  7.14s |
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS[31](https://github.com/SeeedJP/Adafruit_nRF52_Arduino_priv/actions/runs/6358400379/job/17270588570#step:6:32)0/src/Dps310.cpp: In member function 'virtual int16_t Dps310::readcoeffs()':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/Dps310.cpp:84:13: warning: unused variable 'ret' [-Wunused-variable]
   84 |     int16_t ret = readBlock(coeffBlock, buffer);
      |             ^~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp: In member function 'int16_t DpsClass::getSingleResult(float&)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp:171:42: warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
  171 |                     result = calcPressure(raw_val);
      |                              ~~~~~~~~~~~~^~~~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp: In member function 'int16_t DpsClass::measurePressureOnce(float&, uint8_t)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp:171:42: warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
  171 |                     result = calcPressure(raw_val);
      |                              ~~~~~~~~~~~~^~~~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp:163:21: note: 'raw_val' was declared here
  163 |             int[32](https://github.com/SeeedJP/Adafruit_nRF52_Arduino_priv/actions/runs/6358400379/job/17270588570#step:6:33)_t raw_val;
      |                     ^~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp: In member function 'int16_t DpsClass::measureTempOnce(float&, uint8_t)':
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp:171:[42](https://github.com/SeeedJP/Adafruit_nRF52_Arduino_priv/actions/runs/6358400379/job/17270588570#step:6:43): warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
  171 |                     result = calcPressure(raw_val);
      |                              ~~~~~~~~~~~~^~~~~~~~~
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_DPS310/src/DpsClass.cpp:163:21: note: 'raw_val' was declared here
  163 |             int32_t raw_val;
      |                     ^~~~~~~
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

Successfully merging a pull request may close this issue.

3 participants