compiler warning on freebsd
Julien ÉLIE
julien at trigofacile.com
Mon Aug 8 14:41:50 EDT 2011
Hi all,
Following this previous thread:
http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2010-November/002161.html
I also have a compilation error when trying to build INN (a news server)
with the latest version of cyrus-sasl 2.1.24rc1.
I am using GCC 4.6.1.
make[2]: Entering directory `/home/iulius/autobuild/inn/nnrpd'
/home/iulius/autobuild/bin/gcc-core-4.6.1/bin/gcc -g -O2 -DDEBUG=1 -Wall -W -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Werror -g -O2 -I../include -I/home/iulius/autobuild/bin/cyrus-sasl-2.1.24rc1/include -I/home/iulius/autobuild/bin/cyrus-sasl-2.1.24rc1/include -c article.c
In file included from nnrpd.h:25:0,
from article.c:18:
/home/iulius/autobuild/bin/cyrus-sasl-2.1.24rc1/include/sasl/sasl.h:353:5: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
cc1: all warnings being treated as errors
No problem if I do not use the "strict-prototypes" warning with GCC.
Isn't there an issue with cyrus-sasl?
Line 353 is:
int (*proc)();
in sasl_callback_t definition.
By the way, is an official 2.1.24 release planned?
Thanks,
--
Julien ÉLIE
« En France, on n'a pas de pétrole, mais on a des idées !
Alors, j'ai troqué ma deux-chevaux contre une deux-bœufs ! »
(Raymond Devos)
More information about the Cyrus-sasl
mailing list