From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 98eaaa27 for ; Fri, 15 Jul 2016 13:04:16 -0500 (EST) Date: Fri, 15 Jul 2016 13:04:16 -0500 (EST) Message-Id: <16428021972550599102.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: add missing prototypes, no code change; noticed by Christos X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- add missing prototypes, no code change; noticed by Christos Zoulas with -Wmissing-prototypes Modified Files: -------------- mdocml: Makefile.depend configure main.c man_hash.c mandocdb.c mdoc_argv.c mdoc_hash.c Revision Data ------------- Index: mdoc_argv.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_argv.c,v retrieving revision 1.107 retrieving revision 1.108 diff -Lmdoc_argv.c -Lmdoc_argv.c -u -p -r1.107 -r1.108 --- mdoc_argv.c +++ mdoc_argv.c @@ -29,6 +29,7 @@ #include "roff.h" #include "mdoc.h" #include "libmandoc.h" +#include "roff_int.h" #include "libmdoc.h" #define MULTI_STEP 5 /* pre-allocate argument values */ Index: mandocdb.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v retrieving revision 1.218 retrieving revision 1.219 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.218 -r1.219 --- mandocdb.c +++ mandocdb.c @@ -139,6 +139,9 @@ struct mdoc_handler { uint64_t mask; /* set unless handler returns 0 */ }; + +int mandocdb(int, char *[]); + static void dbclose(int); static void dbadd(struct mpage *); static void dbadd_mlink(const struct mlink *mlink); Index: mdoc_hash.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_hash.c,v retrieving revision 1.26 retrieving revision 1.27 diff -Lmdoc_hash.c -Lmdoc_hash.c -u -p -r1.26 -r1.27 --- mdoc_hash.c +++ mdoc_hash.c @@ -26,8 +26,10 @@ #include #include +#include "mandoc.h" #include "roff.h" #include "mdoc.h" +#include "libmandoc.h" #include "libmdoc.h" static unsigned char table[27 * 12]; Index: man_hash.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/man_hash.c,v retrieving revision 1.34 retrieving revision 1.35 diff -Lman_hash.c -Lman_hash.c -u -p -r1.34 -r1.35 --- man_hash.c +++ man_hash.c @@ -24,8 +24,10 @@ #include #include +#include "mandoc.h" #include "roff.h" #include "man.h" +#include "libmandoc.h" #include "libman.h" #define HASH_DEPTH 6 Index: main.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/main.c,v retrieving revision 1.269 retrieving revision 1.270 diff -Lmain.c -Lmain.c -u -p -r1.269 -r1.270 --- main.c +++ main.c @@ -87,6 +87,9 @@ struct curparse { struct manoutput *outopts; /* output options */ }; + +int mandocdb(int, char *[]); + static int fs_lookup(const struct manpaths *, size_t ipath, const char *, const char *, const char *, Index: Makefile.depend =================================================================== RCS file: /home/cvs/mdocml/mdocml/Makefile.depend,v retrieving revision 1.21 retrieving revision 1.22 diff -LMakefile.depend -LMakefile.depend -u -p -r1.21 -r1.22 --- Makefile.depend +++ Makefile.depend @@ -26,7 +26,7 @@ html.o: html.c config.h mandoc.h mandoc_ lib.o: lib.c config.h roff.h mdoc.h libmdoc.h lib.in main.o: main.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h man.h tag.h main.h manconf.h mansearch.h man.o: man.c config.h mandoc_aux.h mandoc.h roff.h man.h libmandoc.h roff_int.h libman.h -man_hash.o: man_hash.c config.h roff.h man.h libman.h +man_hash.o: man_hash.c config.h mandoc.h roff.h man.h libmandoc.h libman.h man_html.o: man_html.c config.h mandoc_aux.h roff.h man.h out.h html.h main.h man_macro.o: man_macro.c config.h mandoc.h roff.h man.h libmandoc.h roff_int.h libman.h man_term.o: man_term.c config.h mandoc_aux.h mandoc.h roff.h man.h out.h term.h main.h @@ -40,8 +40,8 @@ manpath.o: manpath.c config.h mandoc_aux mansearch.o: mansearch.c config.h mandoc.h mandoc_aux.h mandoc_ohash.h compat_ohash.h manconf.h mansearch.h mansearch_const.o: mansearch_const.c config.h mansearch.h mdoc.o: mdoc.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h libmandoc.h roff_int.h libmdoc.h -mdoc_argv.o: mdoc_argv.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h libmandoc.h libmdoc.h -mdoc_hash.o: mdoc_hash.c config.h roff.h mdoc.h libmdoc.h +mdoc_argv.o: mdoc_argv.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h libmandoc.h roff_int.h libmdoc.h +mdoc_hash.o: mdoc_hash.c config.h mandoc.h roff.h mdoc.h libmandoc.h libmdoc.h mdoc_html.o: mdoc_html.c config.h mandoc_aux.h roff.h mdoc.h out.h html.h main.h mdoc_macro.o: mdoc_macro.c config.h mandoc.h roff.h mdoc.h libmandoc.h roff_int.h libmdoc.h mdoc_man.o: mdoc_man.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h man.h out.h main.h Index: configure =================================================================== RCS file: /home/cvs/mdocml/mdocml/configure,v retrieving revision 1.41 retrieving revision 1.42 diff -Lconfigure -Lconfigure -u -p -r1.41 -r1.42 --- configure +++ configure @@ -35,7 +35,8 @@ MANPATH_DEFAULT="/usr/share/man:/usr/X11 OSNAME= CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -f -` -CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings" +CFLAGS="-g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings" +CFLAGS="${CFLAGS} -Wno-unused-parameter" LDADD= LDFLAGS= LD_OHASH= -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv