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

2014-08-14 Thread Timofey Titovets
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? %)

-- 
Have a nice day,
Timofey.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2014-08-14 Thread Lennart Poettering
On Fri, 15.08.14 01:11, Timofey Titovets (nefelim...@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

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2014-08-14 Thread Timofey Titovets
I just use:
./autogen.sh  ./configure  make

But did not matter, thanks for explanation, i think what this thread
can be closed.

2014-08-15 1:57 GMT+03:00 Lennart Poettering lenn...@poettering.net:
 On Fri, 15.08.14 01:11, Timofey Titovets (nefelim...@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

 --
 Lennart Poettering, Red Hat

-- 
Have a nice day,
Timofey.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel