From mboxrd@z Thu Jan 1 00:00:00 1970 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 Date: Fri, 16 Oct 2015 11:10:45 +0100 Message-Id: <1444990247-14277-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> References: <1444990247-14277-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/3] ui/cocoa.m: eliminate normalWindow warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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]; -- 1.9.1