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: default_firmware.ino #20

Closed
45 of 48 tasks
matsujirushi opened this issue Sep 30, 2023 · 3 comments
Closed
45 of 48 tasks

Compilation warnings: default_firmware.ino #20

matsujirushi opened this issue Sep 30, 2023 · 3 comments
Assignees
Labels
UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples

Comments

@matsujirushi
Copy link
Collaborator

matsujirushi commented Sep 30, 2023

default_firmware.ino

  • default_firmware.ino:235:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • default_firmware.ino:246:21: warning: unused variable 'counter' [-Wunused-variable]
  • default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • default_firmware.ino:323:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]
  • default_firmware.ino:323:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int32_t' {aka 'long int'} [-Wformat=]
  • default_firmware.ino:246:21: warning: 'counter' defined but not used [-Wunused-variable]

LBM_WM1110

  • wifi_middleware.c:711:9: warning: 'memcpy' forming offset [30, 31] is out of the bounds [0, 29] of object 'wifi_result_buffer' with type 'uint8_t[29]' {aka 'unsigned char[29]'} [-Warray-bounds]

LBM_packet

  • at_command.cpp:254:27: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'long int'} and 'unsigned int' [-Wsign-compare]
  • at.cpp:88:26: warning: comparison is always true due to limited range of data type [-Wtype-limits]
  • at.cpp:149:13: warning: 'void uint64_to_bytes(uint64_t, uint8_t*)' defined but not used [-Wunused-function]
  • at.cpp:210:13: warning: 'void print_d(int32_t)' defined but not used [-Wunused-function]
  • at.cpp:215:13: warning: 'void print_u(uint32_t)' defined but not used [-Wunused-function]
  • at.cpp:220:16: warning: 'int32_t stringToData(const char*, uint8_t*, uint32_t)' defined but not used [-Wunused-function]
  • at.cpp:274:22: warning: 'u8i' is used uninitialized in this function [-Wuninitialized]
  • at.cpp:483:32: warning: format '%hhu' expects argument of type 'unsigned char*', but argument 3 has type 'LoRaMacRegion_t*' {aka 'eLoRaMacRegion*'} [-Wformat=]
  • user_stored_data.cpp:102:14: warning: unused variable 'log_len' [-Wunused-variable]
  • user_stored_data.cpp:538:14: warning: unused variable 'rlen' [-Wunused-variable]
  • user_stored_data.cpp:655:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
  • smtc_hal_mcu.cpp:6:13: warning: 'void vprint1(const char*, va_list)' defined but not used [-Wunused-function]
  • smtc_hal_mcu.cpp:39:28: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'long unsigned int'} and 'const int32_t' {aka 'const long int'} [-Wsign-compare]
  • main_ble.cpp:417:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  • main_lbm.cpp:217:29: warning: operation on 'app_task_lora_tx_in' may be undefined [-Wsequence-point]
  • main_packet.cpp:121:13: warning: variable 'lorawan_region_sub_band' set but not used [-Wunused-but-set-variable]
  • main_track.cpp:34:27: warning: unused variable 'utc_ble' [-Wunused-variable]
  • main_sensor.cpp:468:17: warning: 'init_average' defined but not used [-Wunused-variable]
  • main_sensor.cpp:468:17: warning: unused variable 'init_average' [-Wunused-variable]
  • main_sensor.cpp:469:20: warning: 'index' defined but not used [-Wunused-variable]
  • main_sensor.cpp:469:20: warning: unused variable 'index' [-Wunused-variable]
  • main_sensor.cpp:522:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  • main_sensor.cpp:523:6: warning: unused variable 'i' [-Wunused-variable]
  • main_sensor.cpp:524:6: warning: unused variable 'size' [-Wunused-variable]
  • main_sensor.cpp:746:41: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • main_sensor.cpp:753:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]
  • main_sensor.cpp:910:33: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  • main_sensor.cpp:925:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]

Seeed_Arduino_LIS3DHTR

  • LIS3DHTR.cpp:482:13: warning: variable 'data' set but not used [-Wunused-but-set-variable]
  • LIS3DHTR.cpp:482:13: warning: variable 'data' set but not used [-Wunused-but-set-variable]

arduino-core

  • 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]

Seeed_Arduino_DPS310

  • 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:171:42: warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
  • DpsClass.cpp:171:42: warning: 'raw_val' may be used uninitialized in this function [-Wmaybe-uninitialized]

Grove_Sunlight_Sensor

  • Si115X.cpp:15:26: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  • Si115X.cpp:124:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
| Wio_Tracker_1110_Examples | default_firmware.ino                | warnings  | 44.63s |
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:235:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:246:21: warning: unused variable 'counter' [-Wunused-variable]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:275:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:323:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:323:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int32_t' {aka 'long int'} [-Wformat=]
/home/runner/work/Adafruit_nRF52_Arduino_priv/Adafruit_nRF52_Arduino_priv/libraries/Wio_Tracker_1110_Examples/examples/LoRaWAN/SenseCAP/default_firmware/default_firmware.ino:246:21: warning: 'counter' defined but not used [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_WM1110/src/mw/geolocation_middleware/wifi/src/wifi_middleware.c:711:9: warning: 'memcpy' forming offset [30, 31] is out of the bounds [0, 29] of object 'wifi_result_buffer' with type 'uint8_t[29]' {aka 'unsigned char[29]'} [-Warray-bounds]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at_command.cpp:254:27: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'long int'} and 'unsigned int' [-Wsign-compare]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:88:26: warning: comparison is always true due to limited range of data type [-Wtype-limits]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:483:32: warning: format '%hhu' expects argument of type 'unsigned char*', but argument 3 has type 'LoRaMacRegion_t*' {aka 'eLoRaMacRegion*'} [-Wformat=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:220:16: warning: 'int32_t stringToData(const char*, uint8_t*, uint32_t)' defined but not used [-Wunused-function]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:215:13: warning: 'void print_u(uint32_t)' defined but not used [-Wunused-function]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:210:13: warning: 'void print_d(int32_t)' defined but not used [-Wunused-function]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:149:13: warning: 'void uint64_to_bytes(uint64_t, uint8_t*)' defined but not used [-Wunused-function]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/at.cpp:274:22: warning: 'u8i' is used uninitialized in this function [-Wuninitialized]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/user_stored_data.cpp:102:14: warning: unused variable 'log_len' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/user_stored_data.cpp:538:14: warning: unused variable 'rlen' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/app_param/user_stored_data.cpp:655:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/common/smtc_hal_mcu.cpp:39:28: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'long unsigned int'} and 'const int32_t' {aka 'const long int'} [-Wsign-compare]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/common/smtc_hal_mcu.cpp:6:13: warning: 'void vprint1(const char*, va_list)' defined but not used [-Wunused-function]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_ble.cpp:417:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_lbm.cpp:217:29: warning: operation on 'app_task_lora_tx_in' may be undefined [-Wsequence-point]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_lbm.cpp:217:29: warning: operation on 'app_task_lora_tx_in' may be undefined [-Wsequence-point]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_packet.cpp:121:13: warning: variable 'lorawan_region_sub_band' set but not used [-Wunused-but-set-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_track.cpp:34:27: warning: unused variable 'utc_ble' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:468:17: warning: unused variable 'init_average' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:469:20: warning: unused variable 'index' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:522:10: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:523:6: warning: unused variable 'i' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:524:6: warning: unused variable 'size' [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:746:41: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:753:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:910:33: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:925:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t' {aka 'long int'} [-Wformat=]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:469:20: warning: 'index' defined but not used [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/LBM_packet/src/internal/main_sensor.cpp:468:17: warning: 'init_average' defined but not used [-Wunused-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_LIS3DHTR/src/LIS3DHTR.cpp:482:13: warning: variable 'data' set but not used [-Wunused-but-set-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Seeed_Arduino_LIS3DHTR/src/LIS3DHTR.cpp:482:13: warning: variable 'data' set but not used [-Wunused-but-set-variable]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/arduino-core/src/SensirionRxFrame.cpp:58:12: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
/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]
/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]
/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]
/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]
/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]
/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]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Grove_Sunlight_Sensor/Si115X.cpp:15:26: warning: comparison is always false due to limited range of data type [-Wtype-limits]
/home/runner/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.5/libraries/Grove_Sunlight_Sensor/Si115X.cpp:124:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
@matsujirushi
Copy link
Collaborator Author

fbd4714

@matsujirushi
Copy link
Collaborator Author

@matsujirushi
Copy link
Collaborator Author

#22

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

No branches or pull requests

3 participants