1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Fix warning in release.

This commit is contained in:
King_DuckZ 2017-08-18 00:32:58 +01:00
parent 7e6d13b496
commit 12147df2b4

View file

@ -30,7 +30,9 @@ namespace mchlib {
template <typename StrRef, typename Str>
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()) {