summaryrefslogtreecommitdiff
path: root/os/osinit.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2015-10-18 23:12:52 -0700
committerAdam Jackson <ajax@redhat.com>2015-10-19 11:52:05 -0400
commitec6294116cc41ff1c3be081b626952fb7e614244 (patch)
tree81aa3387630d876e27dd0962072be717ad30dae2 /os/osinit.c
parent0a5d54f721de7e3ab3b6f4b080190a92bbe3429b (diff)
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>
Diffstat (limited to 'os/osinit.c')
-rw-r--r--os/osinit.c2
1 files changed, 2 insertions, 0 deletions
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__)