From 3c5ef62e8f6399f26ef95d75b235e66d94811e99 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 3 Mar 2016 17:35:21 +0800 Subject: fixes warnings --- utils/utils_helper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/utils_helper.h b/utils/utils_helper.h index b91067b..9172024 100644 --- a/utils/utils_helper.h +++ b/utils/utils_helper.h @@ -70,7 +70,7 @@ } while(false); -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) { @@ -94,7 +94,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files, return true; } -static bool save_phrase_index(const pinyin_table_info_t * phrase_files, +inline bool save_phrase_index(const pinyin_table_info_t * phrase_files, FacadePhraseIndex * phrase_index) { MemoryChunk * new_chunk = NULL; for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { @@ -119,7 +119,7 @@ static bool save_phrase_index(const pinyin_table_info_t * phrase_files, return true; } -static bool save_dictionary(const pinyin_table_info_t * phrase_files, +inline bool save_dictionary(const pinyin_table_info_t * phrase_files, FacadePhraseIndex * phrase_index) { MemoryChunk * new_chunk = NULL; for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { -- cgit