[mew-dist 28622] Re: no warnings
KOIE Hidetaka ( 鯉江英隆 )
hide at example.com
2008年 9月 12日 (金) 17:06:00 JST
Message-Id: <20080912.163805.130181437.kazu at example.com>
Date: Fri, 12 Sep 2008 16:38:05 +0900 (JST)
From: Kazu Yamamoto (山本和彦) <kazu at example.com>
Subject: [mew-dist 28621] Re: no warnings
| > cc -c -O -I/usr/local/include -I/usr/sfw/include incm.c
| > "incm.c", line 167: warning: statement not reached
| reach するコードに見えるのですが。。。
こういうことじゃないでしょうか。
Index: incm.c
===================================================================
RCS file: /cvsmew/mew/bin/incm.c,v
retrieving revision 1.39
diff -5 -p -c -r1.39 incm.c
*** incm.c 18 Feb 2008 10:24:28 -0000 1.39
--- incm.c 12 Sep 2008 08:03:16 -0000
*************** Gethomedir(void)
*** 156,168 ****
if ((home = getenv("HOME")) != NULL)
return home;
#ifdef HAVE_GETPWUID
{
struct passwd *pw;
! if ((pw = getpwuid(getuid())) == NULL)
! return NULL;
! else
return pw->pw_dir;
}
#endif
return NULL;
}
--- 156,166 ----
if ((home = getenv("HOME")) != NULL)
return home;
#ifdef HAVE_GETPWUID
{
struct passwd *pw;
! if ((pw = getpwuid(getuid())) != NULL)
return pw->pw_dir;
}
#endif
return NULL;
}
--
鯉江英隆 <hide at example.com>
Mew-dist メーリングリストの案内