RFM69 library warnings

Started by jbeale, October 27, 2013, 12:28:38 AM

jbeale

The code works, so I guess the warnings I see from the Arduino 1.0.5 compiler (avr-g++.exe (WinAVR 20081205) 4.3.2) aren't a big deal. But is this something that could be cleaned up?

C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp: In member function 'bool RFM69::initialize(byte, byte, byte)':
C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp:82: warning: no return statement in function returning non-void
C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp: In member function 'void RFM69::writeReg(byte, byte)':
C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp:335: warning: unused variable 'oldregval'
C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp: In member function 'bool RFM69::initialize(byte, byte, byte)':
C:\Program Files\Arduino\libraries\RFM69\RFM69.cpp:82: warning: control reaches end of non-void function

Felix

I got 1.0.5, didn't get those warnings, but they are legit.
Fixed now, thanks.

jbeale

By default the Arduino IDE does not display compiler warnings. If you go to File->Preferences and check "Show verbose output during compilation" then it will.