Re: [Qemu-devel] [PATCH v3 5/7] qom: make enum string tables const-correct

2015-05-08 Thread Andreas Färber
Am 01.05.2015 um 12:30 schrieb Daniel P. Berrange: > The enum string table parameters in various QOM/QAPI methods > are declared 'const char *strings[]'. This results in const > warnings if passed a variable that was declared as > >static const char * const strings[] = { }; > > Add the e

[Qemu-devel] [PATCH v3 5/7] qom: make enum string tables const-correct

2015-05-01 Thread Daniel P. Berrange
The enum string table parameters in various QOM/QAPI methods are declared 'const char *strings[]'. This results in const warnings if passed a variable that was declared as static const char * const strings[] = { }; Add the extra const annotation to the parameters, since neither the string