From c4cf1e8f12fe2b589a477931c00da6e1d47ec738 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Wed, 15 Dec 2021 23:13:06 +0300 Subject: [PATCH] Remove extra const qualifier for char pointer Just like IRtext.cpp macro for flash strings, this does not make sense in the context Fixing warnings similar to this ``` .pio/libdeps/d1_mini/IRremoteESP8266/src/IRac.cpp:3272:13: note: in expansion of macro 'STRCASECMP' 3272 | !STRCASECMP(str, kUpStr)) | ^~~~~~~~~~ .pio/libdeps/d1_mini/IRremoteESP8266/src/IRac.cpp: In static member function 'static stdAc::swingh_t IRac::strToSwingH(const char*, stdAc::swingh_t)': .pio/libdeps/d1_mini/IRremoteESP8266/src/IRac.cpp:59:23: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 59 | strcasecmp_P(LHS, reinterpret_cast(RHS)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` --- src/IRac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRac.cpp b/src/IRac.cpp index 7b7ec3ae3..f9d9647d3 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -57,7 +57,7 @@ #ifndef STRCASECMP #if defined(ESP8266) #define STRCASECMP(LHS, RHS) \ - strcasecmp_P(LHS, reinterpret_cast(RHS)) + strcasecmp_P(LHS, reinterpret_cast(RHS)) #else // ESP8266 #define STRCASECMP(LHS, RHS) strcasecmp(LHS, RHS) #endif // ESP8266