]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix build with older gcc
authorJán Tomko <jtomko@redhat.com>
Fri, 23 Jan 2015 09:30:01 +0000 (10:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 23 Jan 2015 09:35:20 +0000 (10:35 +0100)
commitd66e136bd5ce27addd2efabb8d604b40d754865f
tree390717772246a42fd5eb0a86651208077022bc9f
parent3baeea6239636c59454f8d5ffe0d4dbde91518a9
Fix build with older gcc

My commit af1c98e4 broke the build on RHEL-6:
vircgrouptest.c: In function 'testCgroupGetPercpuStats':
vircgrouptest.c:566: error: nested extern declaration of
'_gl_verify_function2' [-Wnested-externs]

The only thing that needs checking is that the array size
is at least EXPECTED_NCPUS, to prevent access beyond the array.

We can ensure the minimum size also by specifying the array
size upfront.
tests/vircgrouptest.c