diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-04 06:02:00 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-04 06:02:00 -0400 |
commit | b848ace76866188701a6a704a9531c4eeb2bc71a (patch) | |
tree | 6fdb3e1cf8a8239c89c03907447a08402bef391b /src/py_utils.cc | |
parent | f16a5382ed9a9750c69595e5752f80e39cf7a4b8 (diff) | |
download | fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.gz fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.bz2 fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.zip |
Allow opt -NDEBUG build to complete without warnings
Diffstat (limited to 'src/py_utils.cc')
-rw-r--r-- | src/py_utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/py_utils.cc b/src/py_utils.cc index 4b364e5d..952416cc 100644 --- a/src/py_utils.cc +++ b/src/py_utils.cc @@ -115,8 +115,10 @@ struct string_from_python utf8::unchecked::utf16to8(value, value + size, std::back_inserter(str)); else if (sizeof(Py_UNICODE) == 4) // UTF-32 utf8::unchecked::utf32to8(value, value + size, std::back_inserter(str)); +#if !defined(NO_ASSERTS) else assert(! "Py_UNICODE has an unexpected size"); +#endif if (value == 0) throw_error_already_set(); void* storage = |