Re: [libvirt] [PATCHv2 5/6] build: silence clang false positive

2011-05-18 Thread Matthias Bolte
2011/5/18 Eric Blake ebl...@redhat.com: Clang couldn't quite see that the same condition of (flags VIR_DOMAIN_MEM_CONFIG) is used twice, such that the second block is guaranteed that def was assigned in the first block. * src/libxl/libxl_driver.c (libxlDomainSetMemoryFlags): Add a hint for

Re: [libvirt] [PATCHv2 5/6] build: silence clang false positive

2011-05-18 Thread Eric Blake
On 05/18/2011 09:49 AM, Matthias Bolte wrote: 2011/5/18 Eric Blake ebl...@redhat.com: Clang couldn't quite see that the same condition of (flags VIR_DOMAIN_MEM_CONFIG) is used twice, such that the second block is guaranteed that def was assigned in the first block. *

[libvirt] [PATCHv2 5/6] build: silence clang false positive

2011-05-17 Thread Eric Blake
Clang couldn't quite see that the same condition of (flags VIR_DOMAIN_MEM_CONFIG) is used twice, such that the second block is guaranteed that def was assigned in the first block. * src/libxl/libxl_driver.c (libxlDomainSetMemoryFlags): Add a hint for clang. --- v2: no change from v1 v1: