[PATCH 1/3] fdisk_osf: silence warning

Denys Vlasenko vda.linux at googlemail.com
Sat Nov 7 00:29:22 UTC 2009


On Friday 06 November 2009 10:56, Marc Kleine-Budde wrote:
> 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

Apllied. Thanks.

I also fixed other two warnigns. Can you confirm that
current git works for you?
--
vda


More information about the busybox mailing list