Seeed-Studio / Wio_Tracker_1110_Examples

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

warning: comparison of integer expressions of different signedness: 'int8_t' #14

Closed matsujirushi closed 1 year ago

matsujirushi commented 1 year ago

Code:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Message:

C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c: In function 'enableInterruptIRQ':
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c:187:24: warning: comparison of integer expressions of different signedness: 'int8_t' {aka 'signed char'} and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
  187 |     if (channelMap[ch] == pin)
      |                        ^~
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c: In function 'disableInterruptIRQ':
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c:202:24: warning: comparison of integer expressions of different signedness: 'int8_t' {aka 'signed char'} and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
  202 |     if (channelMap[ch] == pin)
      |                        ^~
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c: In function 'clearInterruptIRQ':
C:\Users\takashi\AppData\Local\arduino15\packages\Seeeduino\hardware\nrf52\1.1.1\cores\nRF5\WInterrupts.c:217:24: warning: comparison of integer expressions of different signedness: 'int8_t' {aka 'signed char'} and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
  217 |     if (channelMap[ch] == pin)
      |                        ^~
matsujirushi commented 1 year ago

https://github.com/Seeed-Studio/Seeed_WM1110_Arduino/commit/dd63ec0d6862cdf2a76a59d3ebe39b7206c6f3e6