From d93011447712f2b1625a0f4fbfe046e3738990a4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 10 Jun 2015 19:26:13 +0000 Subject: Avoid warning "defined but not used" when compiling with HAVE_MANPATH. Issue found on Debian by Markus . --- manpath.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 * Copyright (c) 2011 Kristaps Dzonsons @@ -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) -- cgit v1.2.3