[PATCH 1/3] fdisk_osf: silence warning

Marc Kleine-Budde mkl at pengutronix.de
Fri Nov 6 09:56:45 UTC 2009


From: Robert Schwebel <r.schwebel at pengutronix.de>

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 <r.schwebel at pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 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



More information about the busybox mailing list