Go Down

Topic: DUE and wire library (IDE 1.8.2 and last libraries as 16/07/2017) (Read 114 times) previous topic - next topic

Pierre83

Hello,
When compiling a sample (master_reader.ino) or a more complex sketch with my DUE, the compiler is complaining :
In file included from C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:25:0:

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.h: In constructor 'TwoWire::TwoWire(Twi*, void (*)(), void (*)())':

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.h:96:7: warning: 'TwoWire::twi' will be initialized after [-Wreorder]

  Twi *twi;

       ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.h:72:10: warning:   'uint8_t TwoWire::rxBufferIndex' [-Wreorder]

  uint8_t rxBufferIndex;

          ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:95:1: warning:   when initialized here [-Wreorder]

 TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) :

 ^

In file included from C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:25:0:

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.h:108:16: warning: 'TwoWire::status' will be initialized after [-Wreorder]

  TwoWireStatus status;

                ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.h:90:30: warning:   'void (* TwoWire::onBeginCallback)()' [-Wreorder]

  void (*onBeginCallback)(void);

                              ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:95:1: warning:   when initialized here [-Wreorder]

 TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) :

 ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp: At global scope:

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:145:9: warning: unused parameter 'sendStop' [-Wunused-parameter]

 uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint32_t iaddress, uint8_t isize, uint8_t sendStop) {

         ^

C:\Users\Pierre\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src\Wire.cpp:212:9: warning: unused parameter 'sendStop' [-Wunused-parameter]

 uint8_t TwoWire::endTransmission(uint8_t sendStop) {

         ^

I don't understand why and how could i remove these warnings.

Pierre

Go Up