diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-30 15:25:05 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-30 15:25:05 +0800 |
commit | 836ea17130bd54b60c0d51ffc656b28106e73d1a (patch) | |
tree | 51a47dbc31fbb18b608ec49f06bb3625927483cc /utils/storage | |
parent | 71bfcb74f432e0d2ea067da53cdc765f54c2e36c (diff) | |
download | libpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.tar.gz libpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.tar.xz libpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.zip |
fixes warnings
Diffstat (limited to 'utils/storage')
-rw-r--r-- | utils/storage/gen_binary_files.cpp | 1 | ||||
-rw-r--r-- | utils/storage/gen_pinyin_table.cpp | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp index 8ffb5fc..932c1cd 100644 --- a/utils/storage/gen_binary_files.cpp +++ b/utils/storage/gen_binary_files.cpp @@ -36,7 +36,6 @@ bool generate_binary_files(const char * pinyin_table_filename, const char * phrase_table_filename, const pinyin_table_info_t * phrase_files) { /* generate pinyin index*/ - pinyin_option_t options = USE_TONE; ChewingLargeTable2 pinyin_table; pinyin_table.attach(pinyin_table_filename, ATTACH_READWRITE|ATTACH_CREATE); diff --git a/utils/storage/gen_pinyin_table.cpp b/utils/storage/gen_pinyin_table.cpp index 4b7073e..36ce0aa 100644 --- a/utils/storage/gen_pinyin_table.cpp +++ b/utils/storage/gen_pinyin_table.cpp @@ -288,7 +288,6 @@ void gen_phrase_file(const char * outputfile, int phrase_index){ (chewing_and_freqs, chewing_and_freq_item, n); ChewingKeyVector keys = chewing_and_freq->keys; - ChewingKeyRestVector key_rests = chewing_and_freq->key_rests; GArray * pinyins = g_array_new(TRUE, FALSE, sizeof(gchar *)); gchar * pinyin = NULL; @@ -296,8 +295,6 @@ void gen_phrase_file(const char * outputfile, int phrase_index){ size_t k; for (k = 0; k < keys->len; ++k) { ChewingKey key = g_array_index(keys, ChewingKey, k); - ChewingKeyRest key_rest = g_array_index - (key_rests, ChewingKeyRest, k); //assert (CHEWING_ZERO_TONE != key.m_tone); pinyin = key.get_pinyin_string(); |