Re: [libvirt] [PATCH 2/6] Workaround issue with clang and inline functions with static vars

2013-05-13 Thread Eric Blake
On 05/13/2013 06:17 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > 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

[libvirt] [PATCH 2/6] Workaround issue with clang and inline functions with static vars

2013-05-13 Thread Daniel P. Berrange
From: "Daniel P. Berrange" 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 S