summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-03 17:35:21 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-03 17:35:21 +0800
commit3c5ef62e8f6399f26ef95d75b235e66d94811e99 (patch)
treeedd643a26e8e977e42577839e50be715f720ce3e /tests
parenta7efd29de74fcef6667c3e2c1695c39b3a48c477 (diff)
downloadlibpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.zip
libpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.tar.gz
libpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.tar.xz
fixes warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_phrase_table.cpp2
-rw-r--r--tests/tests_helper.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index d1bb954..dd142de 100644
--- a/tests/storage/test_phrase_table.cpp
+++ b/tests/storage/test_phrase_table.cpp
@@ -62,7 +62,7 @@ int main(int argc, char * argv[]){
phrase_index.clear_tokens(tokens);
retval = largetable.search(i, new_phrase, tokens);
if (retval & SEARCH_CONTINUED)
- printf("return continued information with length:%d\n", i);
+ printf("return continued information with length:%ld\n", i);
}
phrase_index.clear_tokens(tokens);
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index 431dbc8..6f41f8f 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -22,7 +22,7 @@
#ifndef TESTS_HELPER_H
#define TESTS_HELPER_H
-static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
+inline bool load_phrase_index(const pinyin_table_info_t * phrase_files,
FacadePhraseIndex * phrase_index){
MemoryChunk * chunk = NULL;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
@@ -49,7 +49,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
return true;
}
-static bool load_phrase_table(const pinyin_table_info_t * phrase_files,
+inline bool load_phrase_table(const pinyin_table_info_t * phrase_files,
ChewingLargeTable * chewing_table,
PhraseLargeTable2 * phrase_table,
FacadePhraseIndex * phrase_index){