QList
QList copied to clipboard
Error with QList and Sparkfun Thing Plus
I am using QList for a list of float on a Sparkfun Redboard Turbo. QList works just fine.
I moved to a Sparkfun Thing Plus (ESP32) and I get the following error when I compile...
In file included from C:\Users\flightsim\OneDrive_ARDUINO\myWX_Thing\myWX_Thing.ino:4:0:
C:\Users\flightsim\Documents\Arduino\libraries\QList\src/QList.h: In member function 'T& >QList<T>::at(unsigned int) [with T = float]':
C:\Users\flightsim\Documents\Arduino\libraries\QList\src/QList.h:239:1: error: control reaches end >of non-void function [-Werror=return-type]
}
^
cc1plus.exe: some warnings being treated as errors
I looked at the QList.h file and the QList::at function and didn't see anything obvious.
Any help would be appreciated.
I probably have an idea, problem is that function doesn't return anything when index not found but it should. I probably haven't finished that part. Currently I don't have spare time to fix issue, but feel free to tweak library and PR changes.