SloCompTech / QList

Linked list library for Arduino
MIT License
36 stars 14 forks source link

Error with QList and Sparkfun Thing Plus #14

Open jesawyers opened 4 years ago

jesawyers commented 4 years ago

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::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.

SloCompTech commented 4 years ago

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.