This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
warning when compile: returning reference to temporary [wreturn local addr] #279
Open
Description
when compile the code, usually happen the warning: returning reference to temporary [wreturn local addr] and firebase will not return any description, if firebase error occur.
We should change the function in Firebase.cpp like this, then OK.
Please test it by your self, and update below function the file "Firebase.cpp" if helpful.
const String& FirebaseArduino::error() {
static const String& s = error_.message().c_str();
return s;
}