compiler warning on freebsd

Markus Moeller huaraz at moeller.plus.com
Sun Nov 14 15:45:46 EST 2010


Hi,

 I have an application which compiles fine on Linux, but on FreeBSD I get 
the following warning.  What might be the reason that it fails on FreeBSD ?

gcc -DHAVE_CONFIG_H -I.    -I/usr/include  -I/usr/local/include  -g -O2 -Wall 
 -Wno-unknown-pragmas -Wextra -Werror -Wcomment -Wpointer-arith 
 st-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
 -Wdeclaration-after-statement -Wshadow -MT support_  o -MD -MP -MF 
.deps/support_sasl.Tpo -c -o support_sasl.o support_sasl.c


/usr/local/include/sasl/sasl.h:349: warning: function declaration isn't a 
prototype

%gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

%uname -a
FreeBSD freebsd-80-64.freebsd.home 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat 
Nov 21 15:02:08 UTC 2009 
root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Thank you
Markus 




More information about the Cyrus-sasl mailing list