From: Sami Kerola Date: Sun, 29 May 2011 16:40:29 +0000 (+0200) Subject: sfdisk: declare unused function attributes X-Git-Tag: v2.20-rc1~131^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd3383af2dd10adb5d90cc2afc6d2249b1fa7fa;p=thirdparty%2Futil-linux.git sfdisk: declare unused function attributes Add `__attribute__ ((__unused__))' where needed. Signed-off-by: Sami Kerola --- diff --git a/fdisk/sfdisk.c b/fdisk/sfdisk.c index c38128a84f..8d8ccea8dd 100644 --- a/fdisk/sfdisk.c +++ b/fdisk/sfdisk.c @@ -1590,17 +1590,29 @@ msdos_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) { } static int -osf_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) { +osf_partition(char *dev __attribute__ ((__unused__)), + int fd __attribute__ ((__unused__)), + unsigned long start __attribute__ ((__unused__)), + struct disk_desc *z __attribute__ ((__unused__))) +{ return 0; } static int -sun_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) { +sun_partition(char *dev __attribute__ ((__unused__)), + int fd __attribute__ ((__unused__)), + unsigned long start __attribute__ ((__unused__)), + struct disk_desc *z __attribute__ ((__unused__))) +{ return 0; } static int -amiga_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) { +amiga_partition(char *dev __attribute__ ((__unused__)), + int fd __attribute__ ((__unused__)), + unsigned long start __attribute__ ((__unused__)), + struct disk_desc *z __attribute__ ((__unused__))) +{ return 0; } @@ -2348,7 +2360,7 @@ activate_usage(char *progn) { } static void -unhide_usage(char *progn) { +unhide_usage(char *progn __attribute__ ((__unused__))) { exit(1); }