[ccan] rbtree.c build failure with gcc 4.5.1

Scott Olson scotto701 at gmail.com
Fri Dec 17 15:37:14 EST 2010


On Tue, Dec 14, 2010 at 11:04 PM, Rusty Russell <rusty at rustcorp.com.au> wrote:

> Hmm, interesting.  Joey is right, it's gcc complaining about &*(NULL).

just an fyi.....gcc-4.5 warns about something in ccanlint as well....

-scott


[swo at dell-f14 ccan]$ make tools
cc -g -Wall -Wstrict-prototypes -Wold-style-definition
-Wmissing-prototypes -Wmissing-declarations -I. -MD -Werror   -c -o
tools/ccanlint/ccanlint.o tools/ccanlint/ccanlint.c
cc1: warnings being treated as errors
tools/ccanlint/ccanlint.c: In function ‘main’:
tools/ccanlint/ccanlint.c:454:2: error: taking address of expression
of type ‘void’
tools/ccanlint/ccanlint.c:460:2: error: taking address of expression
of type ‘void’
tools/ccanlint/ccanlint.c:462:2: error: taking address of expression
of type ‘void’
tools/ccanlint/ccanlint.c:465:2: error: taking address of expression
of type ‘void’
make: *** [tools/ccanlint/ccanlint.o] Error 1


More information about the ccan mailing list