From 12147df2b44efc951a8c1660a37d1c2b7b5e75ba Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 18 Aug 2017 00:32:58 +0100 Subject: [PATCH] Fix warning in release. --- src/machinery/stringpool.inl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/machinery/stringpool.inl b/src/machinery/stringpool.inl index 07bf7b1..2172b88 100644 --- a/src/machinery/stringpool.inl +++ b/src/machinery/stringpool.inl @@ -30,7 +30,9 @@ namespace mchlib { template std::size_t start_pos (StrRef parSubstr, const Str* parData) { +#if !defined(NDEBUG) typedef decltype(parData->data()) char_type; +#endif assert(parData); if (not parSubstr.empty()) {