Browse Source

Avoid unused variable warning when NDEBUG.

Author: scottmg@chromium.org
Review URL: https://codereview.appspot.com/134650043
pull/567/head
scottmg 11 years ago
committed by Mihaela Rosca
parent
commit
325d7a2306
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cpp/src/phonenumbers/utf/unicodetext.cc

+ 2
- 0
cpp/src/phonenumbers/utf/unicodetext.cc View File

@ -494,6 +494,7 @@ int UnicodeText::const_iterator::get_utf8(char* utf8_output) const {
UnicodeText::const_iterator UnicodeText::MakeIterator(const char* p) const {
#ifndef NDEBUG
assert(p != NULL);
const char* start = utf8_data();
int len = utf8_length();
@ -501,6 +502,7 @@ UnicodeText::const_iterator UnicodeText::MakeIterator(const char* p) const {
assert(p >= start);
assert(p <= end);
assert(p == end || !UniLib::IsTrailByte(*p));
#endif
return const_iterator(p);
}


Loading…
Cancel
Save