From patchwork Mon Aug 5 19:16:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 18784 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A11A5246D0 for ; Mon, 5 Aug 2013 19:16:45 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f64sf5072746yha.6 for ; Mon, 05 Aug 2013 12:16:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-removed-original-auth:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=s6raKYvdV8FRiqDFaMNXYxDzHwmJc8vT6SpWnmnFB0I=; b=Uhr+tLZXUs28kAKI9ckEKbbjgB/t4MwZHOIlI2I8x6EMcI13IGMzfpEGFNDHISta6c xhF1RaHDkVw9DMT7ffReRJWYlwtZcdMoS+AyuJxxeAEOn5K95n1xESDmZf+aGjiicjxI DSncixlCIjOpChBal95GTHrcsPpbQBCPBCTFGryUaPT9wy9r8fPYAfwZKD9NZUfoL5FC +Iav8pl0YFPw/sMJ5SjxtuEZG9Tb+tXjlK37JsR1JRZb/O+kQ0mGq69RqQfKFhLlCZis 60jaFl95BpMVHiHEifSEf+U3jnrVA1qNwsDCIXZlNUsyUl1EK9NrwaSoVL36tHK2bFz+ tfxw== X-Received: by 10.52.177.230 with SMTP id ct6mr1561003vdc.8.1375730204912; Mon, 05 Aug 2013 12:16:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.16.200 with SMTP id i8ls1678724qed.65.gmail; Mon, 05 Aug 2013 12:16:44 -0700 (PDT) X-Received: by 10.52.31.68 with SMTP id y4mr5223588vdh.97.1375730204771; Mon, 05 Aug 2013 12:16:44 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id rx10si121570vdc.86.2013.08.05.12.16.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:16:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id h10so3267726vbh.34 for ; Mon, 05 Aug 2013 12:16:44 -0700 (PDT) X-Received: by 10.220.164.138 with SMTP id e10mr6229183vcy.27.1375730204154; Mon, 05 Aug 2013 12:16:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp106662vcb; Mon, 5 Aug 2013 12:16:43 -0700 (PDT) X-Received: by 10.194.219.233 with SMTP id pr9mr14121517wjc.8.1375730202257; Mon, 05 Aug 2013 12:16:42 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id jp8si284609wjc.91.2013.08.05.12.16.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:16:42 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1V6QGm-0005ma-LU; Mon, 05 Aug 2013 20:16:40 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH] configure: disable clang -Wstring-plus-int warning Date: Mon, 5 Aug 2013 20:16:40 +0100 Message-Id: <1375730200-22203-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmaWgZprsJrUgkfmszBiKpI9HnVW3ymrRu02MEwMDwExpxTW18Je/wuqEceqG31TMPBvT0A X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index a3bd9be..a1d1701 100755 --- a/configure +++ b/configure @@ -1204,6 +1204,7 @@ gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_ gcc_flags="-Wmissing-include-dirs -Wempty-body -Wnested-externs $gcc_flags" gcc_flags="-Wendif-labels $gcc_flags" gcc_flags="-Wno-initializer-overrides $gcc_flags" +gcc_flags="-Wno-string-plus-int $gcc_flags" # Note that we do not add -Werror to gcc_flags here, because that would # enable it for all configure tests. If a configure test failed due # to -Werror this would just silently disable some features,