From 4ae44bb4c85efd2a78817a784312923ef3552a6a Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 25 Aug 2016 14:17:14 +0200 Subject: Fixed slice2java compilation failure --- cpp/src/slice2java/Gen.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/slice2java/Gen.cpp') diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 8b0b07934c0..795fcb81467 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -987,8 +987,10 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) other.sort(); ids.merge(other); ids.unique(); +#ifndef NDEBUG StringList::const_iterator scopedIter = find(ids.begin(), ids.end(), scoped); assert(scopedIter != ids.end()); +#endif out << sp << nl << "static final String[] __ids ="; out << sb; -- cgit v1.2.3