Op 12/18/2017 om 6:16 PM schreef James:> On 18/12/2017 15:23, Timo Sirainen wrote: > >> https://dovecot.org/releases/2.3/rc/dovecot-2.3.0.rc1.tar.gz > > "smtp-server-cmd-helo.c", line 140: void function cannot return value > "smtp-server-cmd-helo.c", line 148: void function cannot return valueJust wondering: which system/compiler is giving these errors?> pigeonhole compile complained so I stopped at just compiling dovecot.? > I assume an updated pigeonhole is coming. > > "edit-mail.c", line 235: prototype mismatch: 2 args passed, 3 expected > "edit-mail.c", line 1662: prototype mismatch: 2 args passed, 3 expected > "edit-mail.c", line 1671: undefined struct/union member: > set_cache_corrupted_reason > "edit-mail.c", line 1671: function designator is not of function type > "edit-mail.c", line 1673: cannot recover from previous errorsIndeed. Regards, Stephan.
On 18/12/2017 18:15, Stephan Bosch wrote:> Op 12/18/2017 om 6:16 PM schreef James:>> "smtp-server-cmd-helo.c", line 140: void function cannot return value >> "smtp-server-cmd-helo.c", line 148: void function cannot return value > > Just wondering: which system/compiler is giving these errors?Sun/Oracle Studio compiler on Solaris. $ cc -V cc: Studio 12.5 Sun C 5.14 SunOS_i386 2016/05/31 James.
On 12/18/2017 10:53 AM, James wrote:> On 18/12/2017 18:15, Stephan Bosch wrote: >> Op 12/18/2017 om 6:16 PM schreef James: > >>> "smtp-server-cmd-helo.c", line 140: void function cannot return value >>> "smtp-server-cmd-helo.c", line 148: void function cannot return value >> >> Just wondering: which system/compiler is giving these errors? > > Sun/Oracle Studio compiler on Solaris. > > $ cc -V > cc: Studio 12.5 Sun C 5.14 SunOS_i386 2016/05/31This is valid syntax for C++14 but invalid for C11. See this answer: https://stackoverflow.com/questions/35987493/return-void-type-in-c-and-c