From 3c5ef62e8f6399f26ef95d75b235e66d94811e99 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 3 Mar 2016 17:35:21 +0800 Subject: fixes warnings --- tests/storage/test_phrase_table.cpp | 2 +- tests/tests_helper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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){ -- cgit