Informing gcc that a function initializes a pointer target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've run into a situation where I'm getting a spurious (I think) "may be
used uninitialized" warning.

  https://bugzilla.redhat.com/show_bug.cgi?id=1018422

In this case, the variable is initialized when its address is passed to
another function.

This situation made me wonder if there's some sort of function (or
parameter) attribute that I could use to inform the compiler that the
function does, in fact, initialize the variable.

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno@xxxxxxxxx
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux