Commit e3c9bc39 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Ulrich Sibiller

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;
parent babaf67c
...@@ -510,14 +510,15 @@ _XimCreateDefaultTree( ...@@ -510,14 +510,15 @@ _XimCreateDefaultTree(
Xim im) Xim im)
{ {
FILE *fp = NULL; FILE *fp = NULL;
char *name, *tmpname = NULL, *intname; char *name, *tmpname = NULL;
char *cachename = NULL; char *cachename = NULL;
/* Should use getpwent() instead of $HOME (cross-platform?) */ /* Should use getpwent() instead of $HOME (cross-platform?) */
char *home = getenv("HOME"); char *home = getenv("HOME");
char *cachedir = NULL;
char *tmpcachedir = NULL; char *tmpcachedir = NULL;
int hl = home ? strlen (home) : 0; int hl = home ? strlen (home) : 0;
#ifdef COMPOSECACHE #ifdef COMPOSECACHE
char *intname;
char *cachedir = NULL;
const char *encoding = nl_langinfo (CODESET); const char *encoding = nl_langinfo (CODESET);
uid_t euid = geteuid (); uid_t euid = geteuid ();
gid_t egid = getegid (); gid_t egid = getegid ();
...@@ -545,9 +546,9 @@ _XimCreateDefaultTree( ...@@ -545,9 +546,9 @@ _XimCreateDefaultTree(
if (name == (char *) NULL) { if (name == (char *) NULL) {
tmpname = name = _XlcFileName(im->core.lcd, COMPOSE_FILE); tmpname = name = _XlcFileName(im->core.lcd, COMPOSE_FILE);
} }
#ifdef COMPOSECACHE
intname = name; intname = name;
#ifdef COMPOSECACHE
if (getuid () == euid && getgid () == egid && euid != 0) { if (getuid () == euid && getgid () == egid && euid != 0) {
char *c; char *c;
/* Usage: XCOMPOSECACHE=<cachedir>[=<filename>] /* Usage: XCOMPOSECACHE=<cachedir>[=<filename>]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment