can have both?
By the way, there is already an existing gcc bug, which is about the
same thing (NULL passed within named args), but wants to have it the way
it works now:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21911
so if it gets changed, then gcc might need to support both
- NULL
...);
> that's for instance a function which is called in many projects.
> putting the burden on the caller is clearly the wrong trade off here.
>
> so please take this as a vote for the worthiness of a fix ;)
Good. Of course I would be happy if somebody with knowledge of the
compiler source could implement it. I never hacked gcc code before.
But since you suggested sending a patch, I'll at least try to implement
a new __null_terminated__ attribute, and ask for help if I can't figure
out what to do.
Cu... Stefan
--
Stefan Westerfeld, Hamburg/Germany, http://space.twc.de/~stefan