Received: from eggs.gnu.org ([2001:4830:134:3::10]:58696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6bbG-0004PM-Qg for qemu-devel@nongnu.org; Tue, 06 Aug 2013 03:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6bb8-00043T-VO for qemu-devel@nongnu.org; Tue, 06 Aug 2013 03:22:34 -0400 From: Markus Armbruster References: <1375730200-22203-1-git-send-email-peter.maydell@linaro.org> Date: Tue, 06 Aug 2013 09:22:22 +0200 In-Reply-To: <1375730200-22203-1-git-send-email-peter.maydell@linaro.org> (Peter Maydell's message of "Mon, 5 Aug 2013 20:16:40 +0100") Message-ID: <87d2pr1dxt.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] configure: disable clang -Wstring-plus-int warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org Peter Maydell writes: > Some versions of clang will warn about adding integers to strings: > > disas/i386.c:4753:23: error: adding 'char' to a string does not append > to the string [-Werror,-Wstring-plus-int] > oappend ("%es:" + intel_syntax); > ~~~~~~~^~~~~~~~~~~~~~ > disas/i386.c:4753:23: note: use array indexing to silence this warning > oappend ("%es:" + intel_syntax); > ^ > & [ ] > > disas/i386.c uses this idiom to to skip a "%" prefix if using intel > rather than AT&T syntax. This seems like a reasonable thing to do, > and I don't think anybody contributing to QEMU is likely to believe > that '+' is a string concatenation operator in C, so just disable > -Wstring-plus-int. > > Signed-off-by: Peter Maydell Yes, please.