From patchwork Fri Oct 16 10:10:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 55092 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 3C7AE22EAC for ; Fri, 16 Oct 2015 10:53:37 +0000 (UTC) Received: by lffv3 with SMTP id v3sf16448458lff.1 for ; Fri, 16 Oct 2015 03:53:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Ku4Fz403z86sFXK0qSGaBY3OkbTOfDw0FGKEQTG+dRQ=; b=XKA+eSzWIkInfOioDK7sbFvoLSdGsEoeXms3nTrKxJikhCSoH2kXDYO+5glmAfRHF9 ekwqpUoZ9+Xs2dle/DE7yFZ7PvsnzYg5rTCiwBVPWeD19jZSPZsgIi3FAz/cXAlXrn5W Tm1Zg+9VH8ieFVftg18biqY3FQzAg++67rYnYXXKQaJ01OYxNSnpV4WZebEskBD56g0X bwjZRi6lEQ8Y64FAlE/47GNvhXmjZrMIA3ZWOM7S2kZXTB85P51B2wZz7omDBc2y/pNZ smR0uEiB7Vv6eTG+k2gNV8hepjd+Rgk7h3/oxDREzb/6Ac9NPU/TEySIfAlWcENMDDYj ux+Q== X-Gm-Message-State: ALoCoQlo2eGneti2uLCAHG6uPFQxcXPbP/fd+m0jxC3uwYccaeuoZ/3glJ2stTXD414xAhEUwWw2 X-Received: by 10.112.54.197 with SMTP id l5mr3403384lbp.21.1444992816179; Fri, 16 Oct 2015 03:53:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.18.90 with SMTP id h87ls320770lfi.9.gmail; Fri, 16 Oct 2015 03:53:36 -0700 (PDT) X-Received: by 10.25.85.202 with SMTP id j193mr5067349lfb.2.1444992816034; Fri, 16 Oct 2015 03:53:36 -0700 (PDT) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id y9si12494179lbr.34.2015.10.16.03.53.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 03:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lffy185 with SMTP id y185so77689913lff.2 for ; Fri, 16 Oct 2015 03:53:35 -0700 (PDT) X-Received: by 10.25.19.97 with SMTP id j94mr5300612lfi.106.1444992815790; Fri, 16 Oct 2015 03:53:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1191053lbq; Fri, 16 Oct 2015 03:53:34 -0700 (PDT) X-Received: by 10.140.196.77 with SMTP id r74mr19149203qha.23.1444992814901; Fri, 16 Oct 2015 03:53:34 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x21si17307841qha.33.2015.10.16.03.53.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 16 Oct 2015 03:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:52441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1zd-0006ZX-AA for patch@linaro.org; Fri, 16 Oct 2015 06:12:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yS-0005lY-O4 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn1yR-0001kg-Px for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:56 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yR-0001hC-KA for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:55 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Zn1yJ-0003io-Rq for qemu-devel@nongnu.org; Fri, 16 Oct 2015 11:10:47 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 16 Oct 2015 11:10:45 +0100 Message-Id: <1444990247-14277-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> References: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 1/3] ui/cocoa.m: eliminate normalWindow warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: John Arbuckle Eliminate this warning associated with the setting of the normalWindow's title: ui/cocoa.m: In function '-[QemuCocoaAppController init]': ui/cocoa.m:888:9: warning: format not a string literal and no format arguments [-Wformat-security] [normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]]; Signed-off-by: John Arbuckle Message-id: 57057D6E-C108-4AE1-8370-E7E6855B2F2C@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index a91b8bc..4eabc11 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -874,7 +874,7 @@ QemuCocoaView *cocoaView; exit(1); } [normalWindow setAcceptsMouseMovedEvents:YES]; - [normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]]; + [normalWindow setTitle:@"QEMU"]; [normalWindow setContentView:cocoaView]; #if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10) [normalWindow useOptimizedDrawing:YES];