From 9cf74be55f8cae645374878616080b2c82f7435b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 19 Aug 2020 17:50:11 +0200 Subject: [PATCH] jpcre2: fix a couple of "unused parameter" warnings --- lib/jpcre2/jpcre2.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jpcre2/jpcre2.hpp b/lib/jpcre2/jpcre2.hpp index 073627562..8ad010111 100644 --- a/lib/jpcre2/jpcre2.hpp +++ b/lib/jpcre2/jpcre2.hpp @@ -2019,7 +2019,7 @@ struct select{ ///@param nas jp::MapNas map. ///@param ntn jp::MapNtN map. ///@return empty string. - static String eraseFill(NumSub const &num, MapNas const &nas, MapNtN const &ntn){ + static String eraseFill([[maybe_unused]] NumSub const &num, [[maybe_unused]] MapNas const &nas, [[maybe_unused]] MapNtN const &ntn){ return String(); } @@ -2043,7 +2043,7 @@ struct select{ ///@param nas jp::MapNas map. ///@param ntn jp::MapNtN map. ///@return total match (group 0) of current match. - static String fill(NumSub const &num, MapNas const &nas, MapNtn const &ntn){ + static String fill(NumSub const &num, [[maybe_unused]] MapNas const &nas, [[maybe_unused]] MapNtn const &ntn){ return num[0]; } @@ -4588,7 +4588,7 @@ typename jpcre2::select::String jpcre2::select::MatchEvaluator:: #if JPCRE2_USE_MINIMUM_CXX_11 template class Map> -typename jpcre2::select::String jpcre2::select::MatchEvaluator::nreplace(bool do_match, Uint jo, SIZE_T* counter){ +typename jpcre2::select::String jpcre2::select::MatchEvaluator::nreplace(bool do_match, [[maybe_unused]] Uint jo, SIZE_T* counter){ #else template typename jpcre2::select::String jpcre2::select::MatchEvaluator::nreplace(bool do_match, Uint jo, SIZE_T* counter){