]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui/cocoa.m: eliminate normalWindow warning
authorJohn Arbuckle <programmingkidx@gmail.com>
Tue, 13 Oct 2015 20:51:18 +0000 (21:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 Oct 2015 20:51:18 +0000 (21:51 +0100)
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 <programmingkidx@gmail.com>
Message-id: 57057D6E-C108-4AE1-8370-E7E6855B2F2C@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
ui/cocoa.m

index a91b8bc67b6b6e4ef848015de02eea96b562492e..4eabc11bce83d64a3c3ba092dd3ab5c9bc24ed5c 100644 (file)
@@ -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];