On 1/7/19 3:54 AM, Gerd Hoffmann wrote:
>> The first one is fixable with an explicit cast (ugly but works), but the
>> second one is more problematic. It means we can't write stuff like
>>
>> USBPort  uports[MAX(MAXPORTS_2, MAXPORTS_3)];
>>
>> when not in a function. So we either need a dumb version of MIN/MAX, or
>> scrape the idea altogether.
> 
> const_max() for stuff which is a compile time constant maybe?

The conversation on MIN/MAX has been extracted to a new thread:
https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg00727.html
https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg00695.html

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to