]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: declare unused function attributes
authorSami Kerola <kerolasa@iki.fi>
Sun, 29 May 2011 16:40:29 +0000 (18:40 +0200)
committerSami Kerola <kerolasa@iki.fi>
Mon, 30 May 2011 20:12:46 +0000 (22:12 +0200)
Add `__attribute__ ((__unused__))' where needed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
fdisk/sfdisk.c

index c38128a84f0e31758c04260ebfca0a42bac4d169..8d8ccea8dd40f0964369998523c9aaf4670aad31 100644 (file)
@@ -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);
 }