This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new function attribute
- To: astaaf@mindspring.com
- Subject: Re: new function attribute
- From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Date: Thu, 19 Aug 1999 09:14:12 +0200
- CC: gcc@gcc.gnu.org
- References: <37BB37EE.8D@mindspring.com>
> I have been thinking it would be nice to have a new function
> attribute called no_ignore, that would cause a warning if a function
> was called and its return value was ignored. Is this something that
> interests you, or is it something that is already in the works?
As far as I know, this is not yet being considered. You won't get
universal approvement that it is a good idea. Instead, the criteria
for accepting or rejecting it will be more the the traditional ones:
Is there a clear definition of the feature (also in terms of
documentation)? Does the implementation really implement the feature?
Does it interact with other features in a non-intuitive way (which
wouldn't be good)? Did you submit a copyright disclaimer?
If you think you can meet this and similar criteria, I'd say: go ahead
and implement it. When you are done, submit a patch to
gcc-patches@gcc.gnu.org, and the GCC maintainers will eventually look
at it. When you do so, don't get discouraged by a long period of
silence afterwards - the (few) maintainers have typically a long
backlog of patches that need to be investigated.
Hope this helps,
Martin