Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

New Adafruit SPIFlash library build warnings with latest lib
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

New Adafruit SPIFlash library build warnings with latest lib

by richhas on Sun Apr 19, 2020 6:20 pm

@adafruit Did not know if you guys have seen this yet...

In file included from C:\Users\richhas.HASHA\.platformio\packages\framework-arduino-samd-adafruit\libraries\SPI/SPI.h:23:0,
from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\spi/Adafruit_FlashTransport_SPI.h:28,
from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_FlashTransport.h:113,
from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlashBase.h:30,
from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlashBase.cpp:1:
C:\Users\richhas.HASHA\.platformio\packages\framework-arduino-samd-adafruit\cores\arduino/Arduino.h: In instantiation of 'decltype (((b < a) ? b : a)) min(const T&, const L&) [with T = long unsigned int; L = long int; decltype (((b < a) ? b : a)) = long unsigned int]':
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlashBase.cpp:106:61: required from here
C:\Users\richhas.HASHA\.platformio\packages\framework-arduino-samd-adafruit\cores\arduino/Arduino.h:104:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return (b < a) ? b : a;
~~~^~~~
In file included from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:1:0:
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.h: In constructor 'Adafruit_SPIFlash::Adafruit_SPIFlash()':
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.h:64:23: warning: 'Adafruit_SPIFlash::_cache' will be initialized after [-Wreorder]
Adafruit_FlashCache _cache;
^~~~~~
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:19:74: warning: base 'Adafruit_SPIFlashBase' [-Wreorder]
Adafruit_SPIFlash::Adafruit_SPIFlash() : _cache(), Adafruit_SPIFlashBase() {}
^
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:19:1: warning: when initialized here [-Wreorder]
Adafruit_SPIFlash::Adafruit_SPIFlash() : _cache(), Adafruit_SPIFlashBase() {}
^~~~~~~~~~~~~~~~~
In file included from C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:1:0:
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.h: In constructor 'Adafruit_SPIFlash::Adafruit_SPIFlash(Adafruit_FlashTransport*)':
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.h:64:23: warning: 'Adafruit_SPIFlash::_cache' will be initialized after [-Wreorder]
Adafruit_FlashCache _cache;
^~~~~~
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:22:48: warning: base 'Adafruit_SPIFlashBase' [-Wreorder]
: _cache(), Adafruit_SPIFlashBase(transport) {}
^
C:\Users\richhas.HASHA\.platformio\lib\Adafruit SPIFlash_ID1643\src\Adafruit_SPIFlash.cpp:21:1: warning: when initialized here [-Wreorder]
Adafruit_SPIFlash::Adafruit_SPIFlash(Adafruit_FlashTransport *transport)
^~~~~~~~~~~~~~~~~

richhas
 
Posts: 6
Joined: Thu Jan 02, 2014 11:12 pm

Please be positive and constructive with your questions and comments.