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
1 changed files with 5 additions and 1 deletions

View File

@ -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);