[Bug c/80806] gcc does not warn if local array is memset only
bugzilla@poradnik-webmastera.com
gcc-bugzilla@gcc.gnu.org
Fri May 19 09:56:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80806
--- Comment #3 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
"in" attribute is similar to "const", I am not sure if we need another one for
this.
"out" attribute would be handy. I recall than in the past I was looking for it.
gcc can print warning that uninitialized variable is passed to function. Now
one has to initialize that variable before passing it to function. With this
attribute initialization would not be necessary. Beside silenced warning this
also would produce a bit faster executable.
BTW, C# provides "out" parameter modifier, but no "in".
More information about the Gcc-bugs
mailing list