Re: [libvirt] [PATCH] remote_daemon_dispatch.c: typecast ARRAY_CARDINALITY() in remoteDispatchProbeURI()

2019-08-15 Thread Jim Fehlig
On 8/14/19 7:13 AM, Michal Privoznik wrote: > Since users can enable/disable drivers at compile time, it may > happen that @drivers array is in fact empty (in both its > occurrences within the function). This means that > ARRAY_CARDINALITY() returns 0UL which makes gcc unhappy because > of loop con

[libvirt] [PATCH] remote_daemon_dispatch.c: typecast ARRAY_CARDINALITY() in remoteDispatchProbeURI()

2019-08-14 Thread Michal Privoznik
Since users can enable/disable drivers at compile time, it may happen that @drivers array is in fact empty (in both its occurrences within the function). This means that ARRAY_CARDINALITY() returns 0UL which makes gcc unhappy because of loop condition: i < ARRAY_CARDINALITY(drivers) GCC complai