From patchwork Fri Oct 16 10:10:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 55094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id F335922EAC for ; Fri, 16 Oct 2015 11:05:42 +0000 (UTC) Received: by lbbyh1 with SMTP id yh1sf17441624lbb.0 for ; Fri, 16 Oct 2015 04:05:41 -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=s5e9s/sCEDjzSOHxb5R3e0DcNUKSfTV/bFh8p6OjmKo=; b=Atydf9k/tWoYZ6OpQjL5uOv69VvVhUHnQ/nHsEdJz2n9E5NoK/1MmYpyH+b94kjhpq x5NSRWne9gsk+Ofl+wkz8yfug3EoW+CkfoEVN2Doyelu10RvPOK5zVcZ8/VWHjpTCUYZ wDxtHmdHPtuAVVQm3UO+GMxULKYYsot0DcPJFVgRBWFYvIv62lqaOpjpBG9rGhCSqAqO P7IbHMudhOD2gaGFIFOJAzMfFvZHBD6gtafTYaySqSwGaCNderRDDOgUr+GPW7jryTKX +LdsOxe8KZ2oi8EPaSwpgrR9jJRXSGER6QPxBuEpr4fdCTPN7/GPH9y2UlBBBNk/xCyr XjMA== X-Gm-Message-State: ALoCoQkVZxSgDsEbSIZ1SP7pCPYkGGxUh97SafAeUZmK+PaY3zdvGmilVDAGogQQ2PPZ8JU8OT+l X-Received: by 10.180.189.49 with SMTP id gf17mr980919wic.6.1444993541693; Fri, 16 Oct 2015 04:05:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.44.12 with SMTP id s12ls327498lfs.90.gmail; Fri, 16 Oct 2015 04:05:41 -0700 (PDT) X-Received: by 10.25.15.42 with SMTP id e42mr3780333lfi.49.1444993541530; Fri, 16 Oct 2015 04:05:41 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id mv5si12500944lbb.119.2015.10.16.04.05.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 04:05:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbes7 with SMTP id es7so8117651lbb.2 for ; Fri, 16 Oct 2015 04:05:41 -0700 (PDT) X-Received: by 10.112.202.35 with SMTP id kf3mr7976336lbc.19.1444993541428; Fri, 16 Oct 2015 04:05:41 -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 w3csp1198141lbq; Fri, 16 Oct 2015 04:05:40 -0700 (PDT) X-Received: by 10.140.94.40 with SMTP id f37mr11133372qge.3.1444993540549; Fri, 16 Oct 2015 04:05:40 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w65si17373930qgd.59.2015.10.16.04.05.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 16 Oct 2015 04:05:40 -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]:52440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1zZ-0006YR-Bl for patch@linaro.org; Fri, 16 Oct 2015 06:12:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yR-0005lB-QX for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn1yR-0001js-1d for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:55 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn1yQ-0001hC-R7 for qemu-devel@nongnu.org; Fri, 16 Oct 2015 06:10:54 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Zn1yJ-0003is-Sy 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:46 +0100 Message-Id: <1444990247-14277-3-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 2/3] ui/cocoa.m: addRemovableDevicesMenuItems() warning fix 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.217.176 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 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 Message-id: 7B365FC2-072B-4E8D-A1D9-922C2D691A83@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 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;