From: Robert Schwebel <[email protected]>

Silence this warning, which crashes when CONFIG_WERROR is active:

cc1: warnings being treated as errors
In file included from util-linux/fdisk.c:622:
util-linux/fdisk_osf.c: In function 'xbsd_writelabel':
util-linux/fdisk_osf.c:961: error: unused parameter 'p'

Signed-off-by: Robert Schwebel <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
---
 util-linux/fdisk_osf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index 09a68da..5f2fe54 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -964,6 +964,7 @@ xbsd_writelabel(struct partition *p)
 #if !defined(__alpha__) && !defined(__powerpc__) && !defined(__hppa__)
        sector = get_start_sect(p) + BSD_LABELSECTOR;
 #else
+       (void)p;        /* silence warning */
        sector = BSD_LABELSECTOR;
 #endif
 
-- 
1.6.5.2

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to