Re: [Qemu-devel] [PATCH] block/qapi: Fix Sparse warning

2015-03-09 Thread Michael Tokarev
08.03.2015 01:16, Stefan Weil wrote: > Sparse reports this warning: > > block/qapi.c:417:47: warning: > too long initializer-string for array of char(no space for nul char) > > Replacing the string by an array of characters fixes this warning. > -static const char suffixes[NB_SUFFIXES] = "K

[Qemu-devel] [PATCH] block/qapi: Fix Sparse warning

2015-03-07 Thread Stefan Weil
Sparse reports this warning: block/qapi.c:417:47: warning: too long initializer-string for array of char(no space for nul char) Replacing the string by an array of characters fixes this warning. Signed-off-by: Stefan Weil --- block/qapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)