[systemd-devel] [RFC] Remove warning: <var> may be used uninitialized

Lennart Poettering lennart at poettering.net
Thu Aug 14 15:57:00 PDT 2014

On Fri, 15.08.14 01:11, Timofey Titovets (nefelim4ag at gmail.com) wrote:

> Good time of day, when i compile systemd i get ton of warning like:
> <var> may be used uninitialized in function...
> May be i can spend some time and create patches with fixes of that warnings?
> As example declare it by default to 0 or something like that.
> Or this is not a bug, just feature? %)

Did you compile this with -flto? (which is the default, unless you build
with "autogen.sh c" or suchlike) 

With lto enabled gcc warnings about that are not useful, and should be
ignored mostly, right now. Turn off lto, and they become more useful,
but we should be pretty clean with that already.


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list