From fb5c4a642030331876fa5836388d0b75ae661d0f Mon Sep 17 00:00:00 2001 From: Oxan van Leeuwen Date: Wed, 1 Sep 2021 18:03:12 +0200 Subject: [PATCH] Place deprecated attribute in front of function (#8258) --- libraries/ESP8266WiFi/src/WiFiClient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/ESP8266WiFi/src/WiFiClient.h b/libraries/ESP8266WiFi/src/WiFiClient.h index 038e8032df..6f89aede06 100644 --- a/libraries/ESP8266WiFi/src/WiFiClient.h +++ b/libraries/ESP8266WiFi/src/WiFiClient.h @@ -59,7 +59,8 @@ class WiFiClient : public Client, public SList { virtual size_t write(uint8_t) override; virtual size_t write(const uint8_t *buf, size_t size) override; virtual size_t write_P(PGM_P buf, size_t size); - size_t write(Stream& stream) [[ deprecated("use stream.sendHow(client...)") ]]; + [[ deprecated("use stream.sendHow(client...)") ]] + size_t write(Stream& stream); virtual int available() override; virtual int read() override;