[GRASS5] Changes to src/libes/gis/env.c
Justin Hickey
jhickey at impact1.hpcc.nectec.or.th
Wed Jul 12 10:40:50 EDT 2000
Hello Roger
On Jul 12, 9:26am, Roger Bivand wrote:
> > reminding me. I have one question though. I noticed that in some cases,
> > there is a return statement after a call to G_fatal_error(), but
> > G_fatal_error() contains a call to exit(). Therefore, is the return call
> > just to keep the compiler happy, or is it there for another reason? I seem
> > to remember getting hundreds of warnings about functions that had a return
> > type but did not end in a return statement during compiling.
> >
>
> Yes, that's the reason (not a good one, but -Wall helps find important
> things, and when I drown in those kinds of warnings, I tend to miss the
> tricky ones). Another is that G_set_error_routine() could (maybe) be used
> to get round the G_fatal_error() exit - I'm not sure here though.
OK I'll put in some comments to that effect.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list