Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KiX9b-00035x-UP for mharc-grub-devel@gnu.org; Wed, 24 Sep 2008 12:23:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiX9a-00035T-RM for grub-devel@gnu.org; Wed, 24 Sep 2008 12:23:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiX9a-00035B-A8 for grub-devel@gnu.org; Wed, 24 Sep 2008 12:23:50 -0400 Received: from [199.232.76.173] (port=36123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiX9a-000351-3b for grub-devel@gnu.org; Wed, 24 Sep 2008 12:23:50 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:55082 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KiX9Z-0006VF-Ug for grub-devel@gnu.org; Wed, 24 Sep 2008 12:23:50 -0400 Received: from pinux (21.61.221.87.dynamic.jazztel.es [87.221.61.21]) by mail.pina.cat (Postfix) with ESMTP id 93D9B28906548 for ; Wed, 24 Sep 2008 18:23:48 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id 9ED8692A7B; Wed, 24 Sep 2008 18:23:47 +0200 (CEST) Date: Wed, 24 Sep 2008 18:23:47 +0200 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20080924162347.GA20309@pina.cat> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH] Unusued variables X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 16:23:51 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, This is not my "scope" (I mean, not my code) (so sorry if this was on purpose or a warning in my gcc for some reason, etc.): Taking a look to the warnings that my gcc generates compiling Grub2 I have seen: ------- commands/i386/pc/pxecmd.c:49: warning: unused parameter 'argc' commands/i386/pc/pxecmd.c:49: warning: unused parameter 'args' disk/dmraid_nvidia.c:96: warning: unused variable 'uuid' ------- Attached patch fixes it. ------- 2008-09-24 Carles Pina i Estany * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter' warning. * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise. ------- Regards, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info --uAKRQypu60I7Lcqm Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="unused.patch" Index: disk/dmraid_nvidia.c =================================================================== --- disk/dmraid_nvidia.c (revision 1872) +++ disk/dmraid_nvidia.c (working copy) @@ -93,7 +93,6 @@ { grub_disk_addr_t sector; struct grub_nv_super sb; - grub_uint32_t *uuid; if (disk->partition) return grub_error (GRUB_ERR_OUT_OF_RANGE, "skip partition"); Index: commands/i386/pc/pxecmd.c =================================================================== --- commands/i386/pc/pxecmd.c (revision 1872) +++ commands/i386/pc/pxecmd.c (working copy) @@ -46,7 +46,8 @@ } static grub_err_t -grub_cmd_pxe (struct grub_arg_list *state, int argc, char **args) +grub_cmd_pxe (struct grub_arg_list *state, int argc __attribute__ ((unused)), + char **args __attribute__ ((unused))) { if (! grub_pxe_pxenv) return grub_error (GRUB_ERR_FILE_NOT_FOUND, "no pxe environment"); --uAKRQypu60I7Lcqm--