1
0
mirror of https://github.com/ArashPartow/exprtk.git synced 2025-06-12 16:27:23 +00:00

Fix error: unused parameter ‘itr’

exprtk.hpp:2418:58: error: unused parameter ‘itr’ [-Werror=unused-parameter]
 2418 |          inline bool is_comment_start(details::char_cptr itr)
      |                                       ~~~~~~~~~~~~~~~~~~~^~~
This commit is contained in:
Serge Aleynikov
2021-01-09 02:18:54 -05:00
parent fe9c77fc5a
commit 7829226693

@ -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
#ifdef exprtk_disable_comments
itr
#endif
)
{
#ifndef exprtk_disable_comments
const char_t c0 = *(itr + 0);