[libvirt] [PATCH] build: silence false positive clang report

2011-02-14 Thread Eric Blake
clang complained that STREQ(group->controllers[i].mountPoint,...) was a NULL dereference when i==VIR_CGROUP_CONTROLLER_CPUSET, because it assumes the worst about virCgroupPathOfController. Marking the argument const doesn't yet have an effect, per this clang bug: http://llvm.org/bugs/show_bug.cgi

Re: [libvirt] [PATCH] build: silence false positive clang report

2011-02-14 Thread Laine Stump
On 02/14/2011 04:37 PM, Eric Blake wrote: clang complained that STREQ(group->controllers[i].mountPoint,...) was a NULL dereference when i==VIR_CGROUP_CONTROLLER_CPUSET, because it assumes the worst about virCgroupPathOfController. Marking the argument const doesn't yet have an effect, per this

Re: [libvirt] [PATCH] build: silence false positive clang report

2011-02-14 Thread Eric Blake
On 02/14/2011 02:57 PM, Laine Stump wrote: > On 02/14/2011 04:37 PM, Eric Blake wrote: >> clang complained that STREQ(group->controllers[i].mountPoint,...) was >> a NULL dereference when i==VIR_CGROUP_CONTROLLER_CPUSET, because it >> assumes the worst about virCgroupPathOfController. Marking the