diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-10 19:26:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-10 19:26:13 +0000 |
commit | 2673042cc4a0a9c81de37e00342d69200ea91cb5 (patch) | |
tree | cf288721a4a5eabf9f5cfd8678c6ac31f68a0e4b /manpath.c | |
parent | 81ab76a469deb14c73623f6d1eeb1b45e8991f12 (diff) | |
download | mandoc-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>.
Diffstat (limited to 'manpath.c')
-rw-r--r-- | manpath.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |