aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/imLcIm.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-10-15 18:21:48 +0200
committerUlrich Sibiller <u.sibiller@science-computing.de>2016-10-20 10:16:35 +0200
commite3c9bc3926213139dce3a22109822a821d031c80 (patch)
tree9dac0212cd513296189281b2b388e57ee1e921f7 /nx-X11/lib/X11/imLcIm.c
parentbabaf67c92010d2f783d355a50ce11a2a12bb667 (diff)
downloadnx-libs-e3c9bc3926213139dce3a22109822a821d031c80.tar.gz
nx-libs-e3c9bc3926213139dce3a22109822a821d031c80.tar.bz2
nx-libs-e3c9bc3926213139dce3a22109822a821d031c80.zip
imLcIm.c: Fix unused variables
imLcIm.c: In function ‘_XimCreateDefaultTree’: imLcIm.c:525:11: warning: unused variable ‘cachedir’ [-Wunused-variable] char *cachedir = NULL; ^ imLcIm.c:521:35: warning: variable ‘intname’ set but not used [-Wunused-but-set-variable] char *name, *tmpname = NULL, *intname;
Diffstat (limited to 'nx-X11/lib/X11/imLcIm.c')
-rw-r--r--nx-X11/lib/X11/imLcIm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nx-X11/lib/X11/imLcIm.c b/nx-X11/lib/X11/imLcIm.c
index 817fb2147..b3662bc96 100644
--- a/nx-X11/lib/X11/imLcIm.c
+++ b/nx-X11/lib/X11/imLcIm.c
@@ -510,14 +510,15 @@ _XimCreateDefaultTree(
Xim im)
{
FILE *fp = NULL;
- char *name, *tmpname = NULL, *intname;
+ char *name, *tmpname = NULL;
char *cachename = NULL;
/* Should use getpwent() instead of $HOME (cross-platform?) */
char *home = getenv("HOME");
- char *cachedir = NULL;
char *tmpcachedir = NULL;
int hl = home ? strlen (home) : 0;
#ifdef COMPOSECACHE
+ char *intname;
+ char *cachedir = NULL;
const char *encoding = nl_langinfo (CODESET);
uid_t euid = geteuid ();
gid_t egid = getegid ();
@@ -545,9 +546,9 @@ _XimCreateDefaultTree(
if (name == (char *) NULL) {
tmpname = name = _XlcFileName(im->core.lcd, COMPOSE_FILE);
}
+#ifdef COMPOSECACHE
intname = name;
-#ifdef COMPOSECACHE
if (getuid () == euid && getgid () == egid && euid != 0) {
char *c;
/* Usage: XCOMPOSECACHE=<cachedir>[=<filename>]