From 9241d47e4f0f9af160c87a93af3d01ed95a9fb4f Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Tue, 14 Jul 2020 16:55:28 +0200 Subject: [PATCH] [doxy] fix build when more aggressive -W options are used make[2]: Entering directory '/builddir/build/BUILD/kronosnet-1.17/man' gcc -DHAVE_CONFIG_H -I. -I.. -O3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -pthread -I/usr/include/libxml2 -c -o doxyxml-doxyxml.o `test -f 'doxyxml.c' || echo './'`doxyxml.c doxyxml.c: In function 'allcaps': doxyxml.c:414:13: error: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Werror=sign-compare] 414 | for (i=0; i< strlen(name); i++) { | ^ cc1: all warnings being treated as errors make[2]: *** [Makefile:623: doxyxml-doxyxml.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/kronosnet-1.17/man' make[1]: *** [Makefile:567: all-recursive] Error 1 Signed-off-by: Fabio M. Di Nitto --- doxygen2man/doxygen2man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxygen2man/doxygen2man.c b/doxygen2man/doxygen2man.c index 278c1883b..880734a17 100644 --- a/doxygen2man/doxygen2man.c +++ b/doxygen2man/doxygen2man.c @@ -409,7 +409,7 @@ static int read_structure_from_xml(const char *refid, const char *name) static char *allcaps(const char *name) { static char buffer[1024] = {'\0'}; - int i; + size_t i; for (i=0; i< strlen(name); i++) { buffer[i] = toupper(name[i]);