[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] "test/regress_dns.c", line 618: error: void function cannot return value




With 2.1.8 I was surprised to see a compile error :

/opt/developerstudio12.6/bin/cc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -D_REENTRANT -Itest -I/usr/local/include -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -Xa -g -errfmt=error -erroff=%none -xmemalign=8s -errshort=full -xstrconst -xildoff -m64 -xnolibmil -xcode=pic32 -xregs=no%appl -xlibmieee -ftrap=%none -xarch=sparc -mc -xs -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_REENTRANT -c -o test/test_regress-regress_dns.o `test -f 'test/regress_dns.c' || echo './'`test/regress_dns.c
"test/regress_dns.c", line 618: error: void function cannot return value
"test/regress_dns.c", line 623: error: void function cannot return value
"test/regress_dns.c", line 2122: warning: initialization type mismatch
"test/regress_dns.c", line 2123: warning: initialization type mismatch
"test/regress_dns.c", line 2124: warning: initialization type mismatch
"test/regress_dns.c", line 2125: warning: initialization type mismatch
cc: acomp failed for test/regress_dns.c
gmake[1]: *** [Makefile:1791: test/test_regress-regress_dns.o] Error 2
gmake[1]: Leaving directory '/usr/local/build/libevent-2.1.8_SunOS5.10_sparc64vii+.001'
gmake: *** [Makefile:1248: all] Error 2


Also a bucket load of :

"test/regress_bufferevent.c", line 161: warning: assignment type mismatch:
pointer to const void "=" pointer to function(pointer to struct bufferevent {pointer to struct event_base {..} ev_base, pointer to const struct bufferevent_ops {..} be_ops, struct event {..} ev_read, struct event {..} ev_write, pointer to struct evbuffer {..} input, pointer to struct evbuffer {..} output, struct event_watermark {..} wm_read, struct event_watermark {..} wm_write, pointer to function(..) returning void readcb, pointer to function(..) returning void writecb, pointer to function(..) returning void errorcb, pointer to void cbarg, struct timeval {..} timeout_read, struct timeval {..} timeout_write, short enabled}, short, pointer to void) returning void "test/regress_bufferevent.c", line 1332: warning: initialization type mismatch "test/regress_bufferevent.c", line 1333: warning: initialization type mismatch


I'll dig around and see if these are what they claim to be.

This is Oracle Studio 12.6 compilers on Solaris 10 sparc M-class systems.

Dennis
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.