[GRASS5] Re: compiling CVS version
Bill Hughes
bhughes at grasshoppernet.com
Wed Feb 9 21:34:58 EST 2000
On Wed, 9 Feb 2000 17:08:58 Bill Brown - staff asked:
> Now I get these messages on every file it compiles:
> cfe: Error: /disk56/grass.src/CVS/grass/src/include/gisdefs.h, line 278: Syntax Error
> int G_fatal_error(char *,...) __attribute__ ((__noreturn__));
> What's this __attribute__ suppose to do?
gcc uses this syntax to set return attributes for the function; in this case, it
says that G_fatal_error() does not return (it exit()-s instead.) This quiets
the warnings about "no return at end of function" when the 'lint' program or
'gcc -Wall' is used.
The GRASS code will compile without it.
How does your compiler declare a non-returning function?
Bill Hughes
----------------------------------------
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
length: 1420
max: 0
More information about the grass-dev
mailing list