new function attribute
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Tue Aug 31 23:20:00 GMT 1999
> 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
More information about the Gcc
mailing list