]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Workaround issue with clang and inline functions with static vars
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 13 May 2013 11:43:08 +0000 (12:43 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 14 May 2013 14:00:22 +0000 (15:00 +0100)
commit78cff68ca3dcd1d1fb389fe097304a62a756b45c
tree7cab8e9af90f59a5f7aa4408b6189710f88af417
parentc43b685a1d3d1742a4db98950f5947c44143343f
Workaround issue with clang and inline functions with static vars

Clang does not like it when you pass a static variable to an
inline function

 vircgroupmock.c:462:22: error: static variable 'fakesysfsdir' is
  used in an inline function with external linkage [-Werror,-Wstatic-in-inline]

Just make the var non-static to avoid this

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/vircgroupmock.c