diff options
author | Cyril Brulebois <kibi@debian.org> | 2011-12-22 22:31:25 +0100 |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2011-12-22 23:37:21 +0100 |
commit | 2d0c953b1ce0fa2e9a02875ce92cef100bc834b0 (patch) | |
tree | fa0bc5393ce6f14c32bfe784a2675ba66f4ca7d5 | |
parent | 7fba609787d3fb942617f0a4825ffb2bbc8ffd30 (diff) |
xts5: Remove unused variables.warning-fixes
Of all the nkeys_* variables, only nkeys_style is actually used, so
remove all others. The following warnings go away:
| CC xim_save.lo
| xim_save.c:185:12: warning: 'nkeys_response' defined but not used [-Wunused-variable]
| xim_save.c:197:12: warning: 'nkeys_cbname' defined but not used [-Wunused-variable]
| xim_save.c:206:12: warning: 'nkeys_ximtext' defined but not used [-Wunused-variable]
| xim_save.c:215:12: warning: 'nkeys_pe_draw' defined but not used [-Wunused-variable]
| xim_save.c:223:12: warning: 'nkeys_pe_caret' defined but not used [-Wunused-variable]
| xim_save.c:230:12: warning: 'nkeys_st_draw' defined but not used [-Wunused-variable]
Signed-off-by: Cyril Brulebois <kibi@debian.org>
-rw-r--r-- | xts5/src/xim/xim_save.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/xts5/src/xim/xim_save.c b/xts5/src/xim/xim_save.c index 9c33568d..772db708 100644 --- a/xts5/src/xim/xim_save.c +++ b/xts5/src/xim/xim_save.c @@ -182,7 +182,6 @@ static char *keys_response[] = { "STATUS_STYLE", "RESPONSE", }; -static int nkeys_response = sizeof(keys_response) / sizeof(char *); static char *keys_cbname[] = { "PREEDIT_START", @@ -194,8 +193,6 @@ static char *keys_cbname[] = { "STATUS_DRAW", "GEOMETRY", }; -static int nkeys_cbname = sizeof(keys_cbname) / sizeof(char *); - static char *keys_ximtext[] = { "LENGTH", @@ -203,8 +200,6 @@ static char *keys_ximtext[] = { "IS_WCHAR", "STRING", }; -static int nkeys_ximtext = sizeof(keys_ximtext) / sizeof(char *); - static char *keys_pe_draw[] = { "CARET", @@ -212,22 +207,17 @@ static char *keys_pe_draw[] = { "LENGTH", "TEXT", }; -static int nkeys_pe_draw = sizeof(keys_pe_draw) / sizeof(char *); - static char *keys_pe_caret[] = { "POSITION", "DIRECTION", "STYLE", }; -static int nkeys_pe_caret = sizeof(keys_pe_caret) / sizeof(char *); - static char *keys_st_draw[] = { "TYPE", "DATA", }; -static int nkeys_st_draw = sizeof(keys_st_draw) / sizeof(char *); /***********************************************************/ /* save routines for response routines */ |