summaryrefslogtreecommitdiffstats
path: root/utils/storage/gen_pinyin_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-30 15:25:05 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-30 15:25:05 +0800
commit836ea17130bd54b60c0d51ffc656b28106e73d1a (patch)
tree51a47dbc31fbb18b608ec49f06bb3625927483cc /utils/storage/gen_pinyin_table.cpp
parent71bfcb74f432e0d2ea067da53cdc765f54c2e36c (diff)
downloadlibpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.tar.gz
libpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.tar.xz
libpinyin-836ea17130bd54b60c0d51ffc656b28106e73d1a.zip
fixes warnings
Diffstat (limited to 'utils/storage/gen_pinyin_table.cpp')
-rw-r--r--utils/storage/gen_pinyin_table.cpp3
1 files changed, 0 insertions, 3 deletions
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();