LowPowerLab Forum

Hardware support => Moteino => Topic started by: jbeale on October 27, 2013, 12:28:38 AM

Title: RFM69 library warnings
Post by: jbeale on October 27, 2013, 12:28:38 AM
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
Title: Re: RFM69 library warnings
Post by: Felix on October 27, 2013, 07:53:46 PM
I got 1.0.5, didn't get those warnings, but they are legit.
Fixed now, thanks.
Title: Re: RFM69 library warnings
Post by: jbeale on October 28, 2013, 12:10:07 PM
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.