diff options
author | Karel Zak | 2011-08-02 11:21:16 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-02 11:21:16 +0200 |
commit | 7fc6d2b8f8f55f38f069414706bac59c20dd4d24 (patch) | |
tree | ed281faa7deef7ef6d5d06dcb545527009918725 /libmount/src/context.c | |
parent | chrt: [selinux] fix compiler warnings [-Wsign-compare] (diff) | |
download | kernel-qcow2-util-linux-7fc6d2b8f8f55f38f069414706bac59c20dd4d24.tar.gz kernel-qcow2-util-linux-7fc6d2b8f8f55f38f069414706bac59c20dd4d24.tar.xz kernel-qcow2-util-linux-7fc6d2b8f8f55f38f069414706bac59c20dd4d24.zip |
libmount: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context.c')
-rw-r--r-- | libmount/src/context.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index dc43707e9..d9b311621 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1244,7 +1244,7 @@ int mnt_context_prepare_helper(struct libmnt_context *cxt, const char *name, path, name, type); path = strtok_r(NULL, ":", &p); - if (rc >= sizeof(helper) || rc < 0) + if (rc < 0 || (size_t) rc >= sizeof(helper)) continue; rc = stat(helper, &st); @@ -1595,7 +1595,9 @@ int mnt_context_set_syscall_status(struct libmnt_context *cxt, int status) * * Returns: 0 or negative number in case of error. */ -int mnt_context_strerror(struct libmnt_context *cxt, char *buf, size_t bufsiz) +int mnt_context_strerror(struct libmnt_context *cxt __attribute__((__unused__)), + char *buf __attribute__((__unused__)), + size_t bufsiz __attribute__((__unused__))) { /* TODO: based on cxt->syscall_errno or cxt->helper_status */ return 0; @@ -1605,7 +1607,7 @@ int mnt_context_strerror(struct libmnt_context *cxt, char *buf, size_t bufsiz) * mnt_context_init_helper * @cxt: mount context * @action: MNT_ACT_{UMOUNT,MOUNT} - * @flags: not used + * @flags: not used now * * This function infors libmount that used from [u]mount.type helper. * @@ -1618,7 +1620,8 @@ int mnt_context_strerror(struct libmnt_context *cxt, char *buf, size_t bufsiz) * * Returns: 0 on success, negative number in case of error. */ -int mnt_context_init_helper(struct libmnt_context *cxt, int action, int flags) +int mnt_context_init_helper(struct libmnt_context *cxt, int action, + int flags __attribute__((__unused__))) { int rc = mnt_context_disable_helpers(cxt, TRUE); |