]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fs: Fix '<' comparison of value produced by logical not '!'
authorErik Skultety <eskultet@redhat.com>
Tue, 19 Jul 2016 07:27:32 +0000 (09:27 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 19 Jul 2016 07:38:40 +0000 (09:38 +0200)
commit28e191a96cf18dc241f4c3a4224bdf1f20aa1bdf
tree6de739ebe51551475aeb60684fa6f3ba5207adad
parentfc624d86eab0018c1b4c7a80236a86301ebda9e1
fs: Fix '<' comparison of value produced by logical not '!'

Commit da665fbd introduced the following condition to virLXCProcessEnsureRootFS
and openvzReadFSConf:

if (!(<some_var> = virDomainFSDefNew()) < 0)

which broke the build on fedora with GCC 5.3.1: "logical not is only applied to
the left hand side of comparison".

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/lxc/lxc_process.c
src/openvz/openvz_conf.c