I’m using SoftwareSerial in a couple of sketches and the first time I do ‘compile’ I get the following warnings
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:375:6: warning: always_inline function might not be inlinable [-Wattributes]
void SoftwareSerial::setRxIntMsk(bool enable)
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\SoftwareSerial.cpp:121:6: warning: always_inline function might not be inlinable [-Wattributes]
void SoftwareSerial::recv()
^
Everything seems to be working OK so do I need to worry
Thanks
Dave
‘always_inline’ attribute says to the compiler to inline the function even when the compiler optimization parametters are off. Most of the inline functions in the libraries are set to ‘always_inline’.
The message you got will not show up (AFAIK) if the compiler optimization are on.
from the above, you can deduce that for some reasons, not all your compiler optimization settings are on.
I don’t know if this is related to the problem, but I recently noticed that the “inline” interrupt handler in SoftwareSerial was actually inline when compiled in IDE 1.0.6 but called as a subroutine when compiled in IDE 1.6.4. This test was done with identical SoftwareSerial.cpp and .h code.