Skip to content

Commit caec56b

Browse files
authored
[doxy] fix build when more aggressive -W options are used (#410)
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 <fdinitto@redhat.com>
1 parent 71a9c8c commit caec56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doxygen2man/doxygen2man.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int read_structure_from_xml(const char *refid, const char *name)
409409
static char *allcaps(const char *name)
410410
{
411411
static char buffer[1024] = {'\0'};
412-
int i;
412+
size_t i;
413413

414414
for (i=0; i< strlen(name); i++) {
415415
buffer[i] = toupper(name[i]);

0 commit comments

Comments
 (0)