]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build with older gcc
authorEric Blake <eblake@redhat.com>
Tue, 28 May 2013 23:30:30 +0000 (17:30 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 29 May 2013 02:21:50 +0000 (20:21 -0600)
commit0ecc5ad70d7b416a4f98b89781e5b7a5666ca125
tree07bf4f8697f91c6be3782b0efa1e63935705a125
parent3accd7eb25f3646e15511af4cb0d09c3bf2ce143
build: fix build with older gcc

gcc 4.1.2 (hello, RHEL 5!) fails to build on 32-bit platforms with:

conf/domain_conf.c: In function 'virDomainDefParseXML':
conf/domain_conf.c:10581: warning: integer constant is too large for 'long' type

Problem introduced in commit f8e3221f9.

* src/conf/domain_conf.c (virDomainDefParseXML): Mark large constants.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit f6817c70b430c1cfdbdc7795cf09626c1fa810d8)
src/conf/domain_conf.c