This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/5035] Incorrectly produces '`<var>' might be used uninitialized in this function'



------- Comment #10 from trick at icculus dot org  2005-12-22 10:38 -------
Maybe you could add a new variable attribute so that these warnings could at
least be avoided in cases where the coder knows the code is correct ? 
Something like:

int x __attribute__((__notuninited__));
if (y) x = 0;
if (y) use(x);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5035


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]