From b70ea350649b57ade57d8c700a965bbcbbf71ca3 Mon Sep 17 00:00:00 2001 From: Serge Aleynikov Date: Sat, 9 Jan 2021 02:18:54 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20error:=20unused=20parameter=20=E2=80=98it?= =?UTF-8?q?r=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit exprtk.hpp:2418:58: error: unused parameter ‘itr’ [-Werror=unused-parameter] 2418 | inline bool is_comment_start(details::char_cptr itr) | ~~~~~~~~~~~~~~~~~~~^~~ --- exprtk.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exprtk.hpp b/exprtk.hpp index 3f057b8..6702578 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -2415,7 +2415,11 @@ namespace exprtk return (s_end_ == itr); } - inline bool is_comment_start(details::char_cptr itr) + inline bool is_comment_start(details::char_cptr + #ifndef exprtk_disable_comments + itr + #endif + ) { #ifndef exprtk_disable_comments const char_t c0 = *(itr + 0);