From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S38pX-0001im-3J for mharc-grub-devel@gnu.org; Thu, 01 Mar 2012 11:26:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S38pB-0001eZ-Ea for grub-devel@gnu.org; Thu, 01 Mar 2012 11:26:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S38p9-0002q5-Ib for grub-devel@gnu.org; Thu, 01 Mar 2012 11:25:49 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:57756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S38p9-0002p3-5v for grub-devel@gnu.org; Thu, 01 Mar 2012 11:25:47 -0500 Received: by werj55 with SMTP id j55so634977wer.0 for ; Thu, 01 Mar 2012 08:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=nHkONRXRAeEnyu7gnfWXu+cbLyGN1ahEMkdCFu9aQ+4=; b=oCC+Hv+QIOt+hGKDYBltEBJ1szmuzLc5m/b3sXCkiJyMqp9n8HUXI8pJVGAU8oFa3R w0KVxD7hBuuos/gDuoyIf/cabmtIB02HhlZFuoiuOIPzM7W8twOsw63J/tdf9nad0dCj IKPgRpv03SD/7Q4wfw9uahAQNTd/eqWSryroY= Received: by 10.180.101.37 with SMTP id fd5mr3767995wib.1.1330619143959; Thu, 01 Mar 2012 08:25:43 -0800 (PST) Received: from [147.210.128.95] (laptop-147-210-128-95.labri.fr. [147.210.128.95]) by mx.google.com with ESMTPS id s8sm42746035wiz.8.2012.03.01.08.25.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 08:25:42 -0800 (PST) Message-ID: <4F4FA304.3050903@gmail.com> Date: Thu, 01 Mar 2012 17:25:40 +0100 From: =?UTF-8?B?R3LDqWdvaXJlIFN1dHJl?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Iceowl/1.0b2 Icedove/3.1.16 MIME-Version: 1.0 To: The development of GRUB 2 Subject: [PATCH] Fix unused label/function warnings on NetBSD Content-Type: multipart/mixed; boundary="------------080303050300040601070607" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2012 16:26:09 -0000 This is a multi-part message in MIME format. --------------080303050300040601070607 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit The attached patch fixes the following warnings when building GRUB on NetBSD (and probably other BSDs): util/getroot.c: In function 'grub_make_system_path_relative_to_its_root': util/getroot.c:2711:2: error: label 'parsedir' defined but not used util/getroot.c: At top level: util/getroot.c:1084:1: error: 'get_dm_uuid' defined but not used util/getroot.c:1119:1: error: 'grub_util_get_dm_abstraction' defined but not used Grégoire --------------080303050300040601070607 Content-Type: text/x-patch; name="patch-unused-label-function.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-unused-label-function.diff" === modified file 'util/getroot.c' --- util/getroot.c 2012-02-29 13:14:08 +0000 +++ util/getroot.c 2012-03-01 17:15:32 +0000 @@ -1080,6 +1080,7 @@ grub_util_open_dm (const char *os_dev, s #endif +#ifdef __linux__ static char * get_dm_uuid (const char *os_dev) { @@ -1145,6 +1146,7 @@ grub_util_get_dm_abstraction (const char return GRUB_DEV_ABSTRACTION_LVM; #endif } +#endif #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) #include @@ -2708,7 +2710,9 @@ grub_make_system_path_relative_to_its_ro } #endif +#ifdef __linux__ parsedir: +#endif /* Remove trailing slashes, return empty string if root directory. */ len = strlen (buf3); while (len > 0 && buf3[len - 1] == '/') --------------080303050300040601070607--