Skip to content

Commit

Permalink
[doxy] fix build when more aggressive -W options are used (#410)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fabbione authored Jul 15, 2020
1 parent 71a9c8c commit caec56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doxygen2man/doxygen2man.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit caec56b

Please sign in to comment.