osinit: Silence -Wunused-variable warnings
osinit.c:161:24: warning: unused variable 'devnull' [-Wunused-variable,Unused Entity Issue] static const char *devnull = "/dev/null"; ^ osinit.c:162:10: warning: unused variable 'fname' [-Wunused-variable,Unused Entity Issue] char fname[PATH_MAX]; ^ Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
0a5d54f721
commit
ec6294116c
|
@ -158,8 +158,10 @@ void
|
||||||
OsInit(void)
|
OsInit(void)
|
||||||
{
|
{
|
||||||
static Bool been_here = FALSE;
|
static Bool been_here = FALSE;
|
||||||
|
#ifndef XQUARTZ
|
||||||
static const char *devnull = "/dev/null";
|
static const char *devnull = "/dev/null";
|
||||||
char fname[PATH_MAX];
|
char fname[PATH_MAX];
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!been_here) {
|
if (!been_here) {
|
||||||
#if !defined(WIN32) || defined(__CYGWIN__)
|
#if !defined(WIN32) || defined(__CYGWIN__)
|
||||||
|
|
Loading…
Reference in New Issue