On Aug 28, 2016, at 5:30 AM, Karel Gardas <gard...@gmail.com> wrote: > > while building fossil-head just from minutes ago, my compiler on > Solaris 11.2 complain about: > > cc -I. -I../src/src -Ibld -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ > -DFOSSIL_DYNAMIC_BUILD=1 -g -O2 -DHAVE_AUTOCONFIG_H > -D_HAVE_SQLITE_CONFIG_H -o bld/doc.o -c bld/doc_.c > "../src/src/doc.c", line 732: void function cannot return value > cc: acomp failed for bld/doc_.c > gmake: *** [bld/doc.o] Error 2 > > > I've solved this by following change:
That’s only a partial fix. You also need to add a prototype for uvstat_page() to one of the header files that src/doc.c includes, so the compiler would catch that. By calling that function without a prototype, the compiler is assuming C’s default int foo(void) signature. _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users