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:
Jeremy Huddleston 2015-10-18 23:12:52 -07:00 committed by Adam Jackson
parent 0a5d54f721
commit ec6294116c

View File

@ -158,8 +158,10 @@ void
OsInit(void)
{
static Bool been_here = FALSE;
#ifndef XQUARTZ
static const char *devnull = "/dev/null";
char fname[PATH_MAX];
#endif
if (!been_here) {
#if !defined(WIN32) || defined(__CYGWIN__)