From 10d156b28cae3b03dec94ff8eb1a7ac5ff6da29c Mon Sep 17 00:00:00 2001 From: gudnimg Date: Tue, 6 Aug 2024 10:32:28 +0000 Subject: [PATCH] tests: Fix a compiler warning in tests -fpermissive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prusa-Firmware/tests/../Firmware/util.h:114:25: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] 114 | pStrEnd = strchr(this->ptr, '"'); | ~~~~~~^~~~~~~~~~~~~~~~ | | | const char* --- Firmware/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/util.h b/Firmware/util.h index dca66b2fe..86d99827b 100644 --- a/Firmware/util.h +++ b/Firmware/util.h @@ -96,7 +96,7 @@ public: : len(0) , found(false) { - char * pStrEnd = NULL; + const char * pStrEnd = NULL; // Start of the string this->ptr = strchr(pStr, '"');