Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-09-06 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > - Original Message - >> Marc-André Lureau writes: >> >> > - Original Message - >> >> Marc-André Lureau writes: >> >> >> >> > The C standard has the initial value at 0 and the subsequent values >> >> > incremented by 1. No need to set this exp

Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-09-06 Thread Marc-André Lureau
Hi - Original Message - > Marc-André Lureau writes: > > > - Original Message - > >> Marc-André Lureau writes: > >> > >> > The C standard has the initial value at 0 and the subsequent values > >> > incremented by 1. No need to set this explicitely. > >> > > >> > This will preven

Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-09-06 Thread Markus Armbruster
Marc-André Lureau writes: > - Original Message - >> Marc-André Lureau writes: >> >> > The C standard has the initial value at 0 and the subsequent values >> > incremented by 1. No need to set this explicitely. >> > >> > This will prevent from artificial "gaps" when compiling out some en

Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-09-06 Thread Marc-André Lureau
- Original Message - > Marc-André Lureau writes: > > > The C standard has the initial value at 0 and the subsequent values > > incremented by 1. No need to set this explicitely. > > > > This will prevent from artificial "gaps" when compiling out some enum > > values and having unnecessa

Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-09-05 Thread Markus Armbruster
Marc-André Lureau writes: > The C standard has the initial value at 0 and the subsequent values > incremented by 1. No need to set this explicitely. > > This will prevent from artificial "gaps" when compiling out some enum > values and having unnecessarily large MAX values & enums arrays. Yes, b

Re: [Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-08-22 Thread Philippe Mathieu-Daudé
On 08/22/2017 10:22 AM, Marc-André Lureau wrote: The C standard has the initial value at 0 and the subsequent values incremented by 1. No need to set this explicitely. This will prevent from artificial "gaps" when compiling out some enum values and having unnecessarily large MAX values & enums a

[Qemu-devel] [PATCH v2 28/54] qapi: do not define enumeration value explicitely

2017-08-22 Thread Marc-André Lureau
The C standard has the initial value at 0 and the subsequent values incremented by 1. No need to set this explicitely. This will prevent from artificial "gaps" when compiling out some enum values and having unnecessarily large MAX values & enums arrays. Signed-off-by: Marc-André Lureau --- scri