From b0caf4b0c52979bb172ff005b3737363045ccd51 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Sep 2023 06:52:51 +0700 Subject: [PATCH] Fix some compiler warning treats as error in Arduino IDE. --- library.json | 2 +- library.properties | 2 +- src/ESP_Mail_Client.cpp | 2 +- src/ESP_Mail_Client.h | 2 +- src/ESP_Mail_Client_Version.h | 4 ++-- src/ESP_Mail_Const.h | 2 +- src/ESP_Mail_Error.h | 2 +- src/ESP_Mail_FS.h | 2 +- src/ESP_Mail_IMAP.h | 2 +- src/ESP_Mail_SMTP.h | 2 +- src/ESP_Mail_TCPClient.h | 2 +- src/extras/MB_Time.h | 2 +- src/extras/Networks.h | 2 +- src/extras/RFC2047.cpp | 2 +- src/extras/RFC2047.h | 2 +- src/extras/WiFiClientImpl.h | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/library.json b/library.json index 5b8fc1a..0addb5f 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "ESP Mail Client", - "version": "3.4.11", + "version": "3.4.12", "keywords": "communication, email, imap, smtp, esp32, esp8266, samd, arduino", "description": "Arduino E-Mail Client Library to send, read and get incoming email notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino Devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.", "repository": { diff --git a/library.properties b/library.properties index ff8bd35..2fdddc7 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=ESP Mail Client -version=3.4.11 +version=3.4.12 author=Mobizt diff --git a/src/ESP_Mail_Client.cpp b/src/ESP_Mail_Client.cpp index 65226aa..f625a91 100644 --- a/src/ESP_Mail_Client.cpp +++ b/src/ESP_Mail_Client.cpp @@ -4,7 +4,7 @@ #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_Client.h b/src/ESP_Mail_Client.h index 376af45..47efadf 100644 --- a/src/ESP_Mail_Client.h +++ b/src/ESP_Mail_Client.h @@ -2,7 +2,7 @@ #define ESP_MAIL_CLIENT_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_Client_Version.h b/src/ESP_Mail_Client_Version.h index 9568c92..292286f 100644 --- a/src/ESP_Mail_Client_Version.h +++ b/src/ESP_Mail_Client_Version.h @@ -3,8 +3,8 @@ #ifndef ESP_MAIL_VERSION -#define ESP_MAIL_VERSION "3.4.11" -#define ESP_MAIL_VERSION_NUM 30411 +#define ESP_MAIL_VERSION "3.4.12" +#define ESP_MAIL_VERSION_NUM 30412 /* The inconsistent file version checking to prevent mixed versions compilation. */ #define VALID_VERSION_CHECK(ver) (ver == ESP_MAIL_VERSION_NUM) diff --git a/src/ESP_Mail_Const.h b/src/ESP_Mail_Const.h index 95fdacf..9c13bf8 100644 --- a/src/ESP_Mail_Const.h +++ b/src/ESP_Mail_Const.h @@ -6,7 +6,7 @@ #define ESP_MAIL_CONST_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_Error.h b/src/ESP_Mail_Error.h index 81726dc..2395047 100644 --- a/src/ESP_Mail_Error.h +++ b/src/ESP_Mail_Error.h @@ -7,7 +7,7 @@ #define ESP_MAIL_ERROR_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_FS.h b/src/ESP_Mail_FS.h index e7d64d6..d23caef 100644 --- a/src/ESP_Mail_FS.h +++ b/src/ESP_Mail_FS.h @@ -6,7 +6,7 @@ #define ESP_MAIL_CONFIG_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_IMAP.h b/src/ESP_Mail_IMAP.h index 6aee0e7..ebaa7e9 100644 --- a/src/ESP_Mail_IMAP.h +++ b/src/ESP_Mail_IMAP.h @@ -3,7 +3,7 @@ #define ESP_MAIL_IMAP_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_SMTP.h b/src/ESP_Mail_SMTP.h index f4c8ce3..e906b18 100644 --- a/src/ESP_Mail_SMTP.h +++ b/src/ESP_Mail_SMTP.h @@ -3,7 +3,7 @@ #define ESP_MAIL_SMTP_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/ESP_Mail_TCPClient.h b/src/ESP_Mail_TCPClient.h index a2b349b..a93ba3a 100644 --- a/src/ESP_Mail_TCPClient.h +++ b/src/ESP_Mail_TCPClient.h @@ -30,7 +30,7 @@ #define ESP_MAIL_TCPCLIENT_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/extras/MB_Time.h b/src/extras/MB_Time.h index d3b7399..e16ba10 100644 --- a/src/extras/MB_Time.h +++ b/src/extras/MB_Time.h @@ -2,7 +2,7 @@ #define MB_Time_H #include "./ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/extras/Networks.h b/src/extras/Networks.h index 947b087..c77c756 100644 --- a/src/extras/Networks.h +++ b/src/extras/Networks.h @@ -4,7 +4,7 @@ #include "./ESP_Mail_FS.h" #include "./ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/extras/RFC2047.cpp b/src/extras/RFC2047.cpp index 18e837c..04d8b5b 100644 --- a/src/extras/RFC2047.cpp +++ b/src/extras/RFC2047.cpp @@ -2,7 +2,7 @@ #define RFC2047_CPP #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/extras/RFC2047.h b/src/extras/RFC2047.h index 532a069..b544d5f 100644 --- a/src/extras/RFC2047.h +++ b/src/extras/RFC2047.h @@ -4,7 +4,7 @@ #define RFC2047_H #include "ESP_Mail_Client_Version.h" -#if !VALID_VERSION_CHECK(30411) +#if !VALID_VERSION_CHECK(30412) #error "Mixed versions compilation." #endif diff --git a/src/extras/WiFiClientImpl.h b/src/extras/WiFiClientImpl.h index 99be542..9de0a5b 100644 --- a/src/extras/WiFiClientImpl.h +++ b/src/extras/WiFiClientImpl.h @@ -411,7 +411,7 @@ class WiFiClientImpl : public Client int tcpPeek() { - if (!_rxBuff || _fillPos == _fillSize && !fillRxBuffer()) + if (!_rxBuff || (_fillPos == _fillSize && !fillRxBuffer())) { return -1; }