Received: from eggs.gnu.org ([2001:4830:134:3::10]:48779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVDJc-0007SQ-Mo for qemu-devel@nongnu.org; Tue, 10 Mar 2015 02:06:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVDJY-00089B-KP for qemu-devel@nongnu.org; Tue, 10 Mar 2015 02:06:52 -0400 Message-ID: <54FE89F7.1050108@msgid.tls.msk.ru> Date: Tue, 10 Mar 2015 09:06:47 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1425766581-18250-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1425766581-18250-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block/qapi: Fix Sparse warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Trivial Cc: Kevin Wolf , QEMU Developer , Stefan Hajnoczi 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] = "KMGT"; > + static const char suffixes[NB_SUFFIXES] = {'K', 'M', 'G', 'T'}; The latter is a bit uglier to my taste but oh well, damn warnings! :) Applied to -trivial, thanks! /mjt