[racket-dev] Warnings in source code

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Fri Aug 26 12:28:48 EDT 2011

On Fri, Aug 26, 2011 at 12:21 PM, Paulo J. Matos <paulo at matos-sorge.com> wrote:
> Hi,
>
> I was just looking at the warnings in racket source code after Sam posted
> the bite size projects threads with the link to the wiki.
>
> I can't access http://drdr.racket-lang.org/ (the page just doesn't load)
> So, I cloned racket, configured it and did a make.
>
> I only get two warning on the whole build:
> gcc -I./.. -I../../../racket/src/racket/gc2/../include -g -O2 -pthread
> -Wall    -c xsrc/place.c -o place.o
> ../../../racket/src/racket/gc2/../src/place.c: In function
> ‘place_async_send’:
> ../../../racket/src/racket/gc2/../src/place.c:2450:14: warning: operation on
> ‘ch->in’ may be undefined
> ../../../racket/src/racket/gc2/../src/place.c: In function
> ‘scheme_place_async_try_receive’:
> ../../../racket/src/racket/gc2/../src/place.c:2589:17: warning: operation on
> ‘ch->out’ may be undefined
>
> This is with GCC4.5.

Great.  It might be helpful to try building with clang as well, as it
gives very helpful warning/error messages.  The next step is to figure
out how to patch that file to remove the warning.

> I will try later GCC4.6 though but I am amazed GCC4.5 only shows two
> warnings. Well, it's definitely a good sign but I was wondering if I
> overlooked something.

I don't think so -- the default configuration builds everything.
-- 
sam th
samth at ccs.neu.edu



Posted on the dev mailing list.