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()) {