* [PATCH] Fix unused label/function warnings on NetBSD
@ 2012-03-01 16:25 Grégoire Sutre
2012-03-02 10:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Grégoire Sutre @ 2012-03-01 16:25 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
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
[-- Attachment #2: patch-unused-label-function.diff --]
[-- Type: text/x-patch, Size: 732 bytes --]
=== 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 <libgeom.h>
@@ -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] == '/')
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix unused label/function warnings on NetBSD
2012-03-01 16:25 [PATCH] Fix unused label/function warnings on NetBSD Grégoire Sutre
@ 2012-03-02 10:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-02 13:08 ` Grégoire Sutre
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-03-02 10:39 UTC (permalink / raw)
To: grub-devel
On 01.03.2012 17:25, Grégoire Sutre wrote:
> 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
>
Is it all fixed after cygwin FTBFS patch series?
> Grégoire
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix unused label/function warnings on NetBSD
2012-03-02 10:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-03-02 13:08 ` Grégoire Sutre
0 siblings, 0 replies; 3+ messages in thread
From: Grégoire Sutre @ 2012-03-02 13:08 UTC (permalink / raw)
To: The development of GNU GRUB
On 03/02/2012 11:39 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 01.03.2012 17:25, Grégoire Sutre wrote:
>> 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
>>
> Is it all fixed after cygwin FTBFS patch series?
Yes. Thanks,
Grégoire
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-02 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01 16:25 [PATCH] Fix unused label/function warnings on NetBSD Grégoire Sutre
2012-03-02 10:39 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-02 13:08 ` Grégoire Sutre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.