diff options
author | 2011-07-07 22:53:50 -0700 | |
---|---|---|
committer | 2011-07-08 00:29:11 -0700 | |
commit | ce9efbff53ba04bd719c3c15d8a5a501ff12714f (patch) | |
tree | b48d80792ab164f5573d36a17e325bb46ccaf075 /native/src/bigram_dictionary.cpp | |
parent | 895fc0e1b3ab38ce8017f90779dc851d6aec2314 (diff) | |
download | latinime-ce9efbff53ba04bd719c3c15d8a5a501ff12714f.tar.gz latinime-ce9efbff53ba04bd719c3c15d8a5a501ff12714f.tar.xz latinime-ce9efbff53ba04bd719c3c15d8a5a501ff12714f.zip |
Compile code used in logging conditionally so that gcc does not complain
about unused-but-set variables.
Change-Id: I141f438694a1854d54d08cb5a74c23222dd9d85e
Diffstat (limited to 'native/src/bigram_dictionary.cpp')
-rw-r--r-- | native/src/bigram_dictionary.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/native/src/bigram_dictionary.cpp b/native/src/bigram_dictionary.cpp index 11e6dc250..d11aee28e 100644 --- a/native/src/bigram_dictionary.cpp +++ b/native/src/bigram_dictionary.cpp @@ -42,8 +42,10 @@ BigramDictionary::~BigramDictionary() { bool BigramDictionary::addWordBigram(unsigned short *word, int length, int frequency) { word[length] = 0; if (DEBUG_DICT) { +#ifdef FLAG_DBG char s[length + 1]; for (int i = 0; i <= length; i++) s[i] = word[i]; +#endif LOGI("Bigram: Found word = %s, freq = %d :", s, frequency); } |