[GRASS5] compiling code
Glynn Clements
glynn.clements at virgin.net
Wed May 7 09:08:04 EDT 2003
Markus Neteler wrote:
> > > ... this is an invitation to compile GRASS with -Wall. All
> > > developers may eliminate compiler warnings whenever possible
> > > (delete unused variables, add missing headers etc).
> >
> > But don't just "make the warnings go away". Unless you are sure that
> > you are fixing the actual problem, it's better that the warning
> > remains; it may be the only clue that there's a bug.
>
> I was thinking of unused variables and cases where e.g. fprintf()
> is used but <string.h> not included,
fprintf() is in <stdio.h>, not <string.h>. Ditto for sprintf().
> the same for exit() and so on.
OK; including the appropriate header files is definitely the right
thing to do.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list