diff mbox

[PULL,2/3] ui/cocoa.m: addRemovableDevicesMenuItems() warning fix

Message ID 1444990247-14277-3-git-send-email-peter.maydell@linaro.org
State Accepted
Commit a7940ec0af4be5d35f65890fe0c722efc5489298
Headers show

Commit Message

Peter Maydell Oct. 16, 2015, 10:10 a.m. UTC
From: John Arbuckle <programmingkidx@gmail.com>

Eliminate this warning associated with the addRemovableDevicesMenuItems()
function:

ui/cocoa.m:1344:13: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
 static void addRemovableDevicesMenuItems()
             ^
ui/cocoa.m: In function 'addRemovableDevicesMenuItems':
ui/cocoa.m:1344:13: warning: old-style function definition [-Wold-style-definition]

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Message-id: 7B365FC2-072B-4E8D-A1D9-922C2D691A83@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ui/cocoa.m b/ui/cocoa.m
index 4eabc11..8db8b9f 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1353,7 +1353,7 @@  static void add_console_menu_entries(void)
 /* Make menu items for all removable devices.
  * Each device is given an 'Eject' and 'Change' menu item.
  */
-static void addRemovableDevicesMenuItems()
+static void addRemovableDevicesMenuItems(void)
 {
     NSMenu *menu;
     NSMenuItem *menuItem;