summaryrefslogtreecommitdiffstats
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
commit2673042cc4a0a9c81de37e00342d69200ea91cb5 (patch)
treecf288721a4a5eabf9f5cfd8678c6ac31f68a0e4b
parent81ab76a469deb14c73623f6d1eeb1b45e8991f12 (diff)
downloadmandoc-2673042cc4a0a9c81de37e00342d69200ea91cb5.tar.gz
Avoid warning "defined but not used" when compiling with HAVE_MANPATH.
Issue found on Debian by Markus <Waldeck at gmx dot de>.
-rw-r--r--manpath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/manpath.c b/manpath.c
index 4f72e75a..5f32efd5 100644
--- a/manpath.c
+++ b/manpath.c
@@ -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)