Repository navigation
Replies: 3 comments 8 replies
|
Hi, |
|
I am converting this to a discussion because this is not an issue, and the solution to such warning might be more complicated. The redirection is not right because the PGM_P type is lost, and PGM_P could be something else than a const char* |
|
Hi Mathieu, Around 717: Around 777: Do you want me to commit this? |
Uh oh!
There was an error while loading. Please reload this page.
Platform
ESP8266
IDE / Tooling
Arduino (IDE/CLI)
What happened?
In version 3.12.1 beginResponse_P has been depricated, however in ESPAsyncWebServer.h line 717 it internally still uses beginResponse_P causing compiler warnings:
c:.....\ESP_Async_WebServer\src/ESPAsyncWebServer.h:717:62: warning: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse_P(int, const String&, const char*, AwsTemplateProcessor)' is deprecated: Replaced by beginResponse(int code, const String& contentType, const char* content = asyncsrv::empty, AwsTemplateProcessor callback = nullptr) [-Wdeprecated-declarations]
717 | send(beginResponse_P(code, contentType, content, callback));
c:\Pepijn\Projecten\Elektronica\Source\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:777:27: note: declared here
777 | AsyncWebServerResponse *beginResponse_P(int code, const String &contentType, PGM_P content, AwsTemplateProcessor callback = nullptr);
Replacing beginResponse_P on line 717 for beginResponse will make the warnings go away.
Stack Trace
No crash, compile warning for ESP8266
Minimal Reproductible Example (MRE)
Compile warning for ESP8266
I confirm that:
All reactions