[Vm-dev] limiting compiler warnings...

David T. Lewis lewis at mail.msen.com
Wed Mar 21 01:50:00 UTC 2012


On Tue, Mar 20, 2012 at 04:35:15PM +0100, Camillo Bruni wrote:
> 
> I am quickly trying to limit the number of warnings we get when compiling cog.
> 
> The current output is amazingly verbose, and utterly useless when looking for possible bugs :/.
> Furthermore it seems that cared about the following warning:
> 
> /Users/cami-data/education/phd/project/cog/dh83s-blessed/src/vm/gcc3x-cointerp.c:2066: warning: passing argument 1 of ?longAt? makes integer from pointer without a cast
> 
> what would be the easiest way to introduce an auto-cast for longAt and family?
> I think the easiest solution would be to reintroduce the macros that are currently disabled, no?

That is a Really Bad Idea. If the warnings are bothering you, then just
relax and have a cup of tea. But they exist for a reason, and if you
ever want to get the type declarations right, you will want to pay
attention to the what the compiler is telling you. If you think there
are too many warnings, then put your energy into addressing the type
declaration issues that produce the warnings.

Dave



More information about the Vm-dev mailing list