diff options
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |