https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893
Daniel Fruzynski <bugzi...@poradnik-webmastera.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@poradnik-webmaster | |a.com --- Comment #7 from Daniel Fruzynski <bugzi...@poradnik-webmastera.com> --- I am looking for something similar - I want to mark function argument as an output-only. Now when I compile following code with -Wall -O1 (using gcc 4.4.7), I get following waring: 'myVar' may be used uninitialized in this function. With help of new function or function argument attribute this warning would go away. This new attribute may also enable additional code optimizations and warnings. I propose syntax __attribute__((out)). void __attribute__((const)) func(int* i) { *i = 44; } int func2() { int myVal; func(&myVal); return myVal; }