aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-06-10 19:26:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-06-10 19:26:13 +0000
commitd93011447712f2b1625a0f4fbfe046e3738990a4 (patch)
treea713e760c5a60189f8954317e902d5e7a0372e04 /manpath.c
parentbec2e37e16be5b57221695c84277413c81427c3d (diff)
downloadmandoc-d93011447712f2b1625a0f4fbfe046e3738990a4.tar.gz
mandoc-d93011447712f2b1625a0f4fbfe046e3738990a4.tar.zst
mandoc-d93011447712f2b1625a0f4fbfe046e3738990a4.zip
Avoid warning "defined but not used" when compiling with HAVE_MANPATH.
Issue found on Debian by Markus <Waldeck at gmx dot de>.
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/manpath.c b/manpath.c
index 9446ea69..532bdb30 100644
--- a/manpath.c
+++ b/manpath.c
@@ -1,4 +1,4 @@
-/* $Id: manpath.c,v 1.25 2015/05/07 12:08:13 schwarze Exp $ */
+/* $Id: manpath.c,v 1.26 2015/06/10 19:26:13 schwarze Exp $ */
/*
* Copyright (c) 2011, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -29,7 +29,9 @@
#include "mandoc_aux.h"
#include "manconf.h"
+#if !HAVE_MANPATH
static void manconf_file(struct manconf *, const char *);
+#endif
static void manpath_add(struct manpaths *, const char *, int);
static void manpath_parseline(struct manpaths *, char *, int);
@@ -203,6 +205,7 @@ manconf_free(struct manconf *conf)
free(conf->output.style);
}
+#if !HAVE_MANPATH
static void
manconf_file(struct manconf *conf, const char *file)
{
@@ -263,6 +266,7 @@ out:
if (*manpath_default != '\0')
manpath_parseline(&conf->manpath, manpath_default, 0);
}
+#endif
void
manconf_output(struct manoutput *conf, const char *cp)