diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-03 17:35:21 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-03 17:35:21 +0800 |
commit | 3c5ef62e8f6399f26ef95d75b235e66d94811e99 (patch) | |
tree | edd643a26e8e977e42577839e50be715f720ce3e /utils | |
parent | a7efd29de74fcef6667c3e2c1695c39b3a48c477 (diff) | |
download | libpinyin-3c5ef62e8f6399f26ef95d75b235e66d94811e99.tar.gz |
fixes warnings
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils_helper.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |