On 24 Sep 2015, at 15:11, Marcin Mirosław <mar...@mejor.pl> wrote: > >> >> What happens if in src/lib/buffer.h line 23 you change the >> __builtin_object_size((d),3) to __builtin_object_size((d),1)? Does it work? > > Yes, it works. Now dovecot-2.2.19.rc1 compiles fine.
OK, committed the change. > P.S. Is such warnings something you care? >> clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings >> -I../../src/lib-master -DPKG_RUNDIR=\""/var/run/dovecot"\" >> -DPKG_STATEDIR=\""/var/lib/dovecot"\" >> -DPKG_LIBEXECDIR=\""/usr/libexec/dovecot"\" -DBINDIR=\""/usr/bin"\" >> -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes >> -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 >> -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c >> -o sd-daemon.o sd-daemon.c >> sd-daemon.c:56:19: warning: implicit declaration of function 'getenv' is >> invalid in C99 [-Wimplicit-function-declaration] >> if (!(e = getenv("LISTEN_PID"))) { These were already fixed: http://hg.dovecot.org/dovecot-2.2/rev/c4b9e6606cbf