Commit ec629411 authored by Jeremy Huddleston's avatar Jeremy Huddleston Committed by Adam Jackson

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: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
parent 0a5d54f7
......@@ -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__)
......
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