Skip to content
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
@lenguyenvu007

Description

@lenguyenvu007

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;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions