]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: add pragma directive to fix build on some gcc
authorPavel Hrdina <phrdina@redhat.com>
Fri, 24 Apr 2015 10:57:10 +0000 (12:57 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 24 Apr 2015 11:40:41 +0000 (13:40 +0200)
commit7674c0454b50b223c8348d2adc6e6db016ddbc2d
treea591cef276c1c053ae5e3430342dbde770abd063
parent152896ca7d0fd6fa31355f9c71c05e49c6de4e29
build: add pragma directive to fix build on some gcc

Commit 1268820a removed obsolete index() function and replaced it by
strchr.  Few versions of gcc has a bug and reports a warning about
strchr:

../../src/util/virstring.c:1006: error: logical '&&' with non-zero
constant will always evaluate as true [-Wlogical-op]

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/virstring.c