[GRASS5] Problems compiling and running GRASS6.CVS
Markus Neteler
neteler at itc.it
Wed Apr 5 16:34:55 EDT 2006
On Wed, Apr 05, 2006 at 08:59:23PM +0100, Glynn Clements wrote:
>
> Hamish wrote:
>
> > > [The current default setting of CFLAGS_WARNING enables too many
> > > warnings, resulting in significant warnings getting lost in the noise.
> > > I'll change that.]
> >
> > what are the recommended gcc settings for pedantic developers to use?
>
> If you're compiling a specific module which you're working on, the
> default setting (-Wall -Wconversion -Wno-implicit-int) is probably
> appropriate. Otherwise, it should be empty, so that you only get the
> compiler's default warnings.
>
> FWIW, I wouldn't suggest trying to eliminate all of the warnings
> arising from -Wconversion; just check that they don't indicate flaws
> in your code.
>
I am using
CFLAGS="-g -Wall -pedantic -Werror-implicit-function-declaration -fno-common"
for long time now which seems to be quite successfully as it
- stops on severe problems (so, nothing get's lost in noise then)
- traps most wrong/absent declarations
Markus
More information about the grass-dev
mailing list