]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: fix compiler warnings [-Wunused-parameter -Wunused-variable]
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:40:37 +0000 (16:40 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:40:37 +0000 (16:40 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.c

index 221168d40a62a16abbceb42256b9d79178471648..b5979050133b98e978528d589acf21f12a2a5d4b 100644 (file)
@@ -113,7 +113,8 @@ static char *encrypt_pass_get(struct libmnt_context *cxt)
        return xgetpass(passfd, _("Password: "));
 }
 
-static void encrypt_pass_release(struct libmnt_context *cxt, char *pwd)
+static void encrypt_pass_release(struct libmnt_context *cxt
+                       __attribute__((__unused__)), char *pwd)
 {
        char *p = pwd;
 
@@ -354,7 +355,6 @@ try_readonly:
        case EBUSY:
        {
                struct libmnt_table *tb;
-               int count = 0;
 
                if (mflags & MS_REMOUNT) {
                        warnx(_("%s is busy"), tgt);