]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups: fix build warning on GCC 7 3349/head
authorAleksa Sarai <cyphar@cyphar.com>
Thu, 2 Apr 2020 15:13:11 +0000 (02:13 +1100)
committerAleksa Sarai <cyphar@cyphar.com>
Thu, 2 Apr 2020 15:13:11 +0000 (02:13 +1100)
commitfdb0b8ab2d83eace642153626a5dd5ef04d6f749
treec4895b21e67bff397d282518f31ebdefde77e3a9
parent9f6302e3880adb255eed772e345d58a90eb577a0
cgroups: fix build warning on GCC 7

GCC 7 appears to be clever enough to detect that transient_len is
uninitialised but not that it won't be used despite [1]. Just initialise
it to zero to stop the complaining, and allow LXC to build on openSUSE
Leap.

[1]: 346830421a96 ("cgroups: fix "uninitialized transient_len" warning")

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
src/lxc/cgroups/cgfsng.c