diff options
author | John Arbuckle <programmingkidx@gmail.com> | 2015-10-13 21:51:18 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-10-13 21:51:18 +0100 |
commit | a1dbc05a6f73e63ccfdd538c1825d44aa6347d8f (patch) | |
tree | 8a044738d9a624b9651bc8370bd22b9ba75786e7 /ui | |
parent | c49d3411faae8ffaab8f7e5db47405a008411c10 (diff) | |
download | qemu-a1dbc05a6f73e63ccfdd538c1825d44aa6347d8f.zip qemu-a1dbc05a6f73e63ccfdd538c1825d44aa6347d8f.tar.gz qemu-a1dbc05a6f73e63ccfdd538c1825d44aa6347d8f.tar.bz2 |
ui/cocoa.m: eliminate normalWindow warning
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/cocoa.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |