From ec6294116cc41ff1c3be081b626952fb7e614244 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 18 Oct 2015 23:12:52 -0700 Subject: [PATCH] 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 Signed-off-by: Jeremy Huddleston Sequoia --- os/osinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/osinit.c b/os/osinit.c index ddd3fce26..6ec2f1167 100644 --- a/os/osinit.c +++ b/os/osinit.c @@ -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__)