summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Roberts <wroberts@tresys.com>2014-01-14 15:04:56 -0500
committerWilliam Roberts <wroberts@tresys.com>2014-01-14 15:04:56 -0500
commit21095d0cae64c70b4ac7e90af7a6787019cc317a (patch)
treef7fd3dbed74f80a9990b465cedcc4056a9bb3a57
parent91e2019f81a839b71cfcff75129d1c1fdd552dcb (diff)
downloadsystem_core-21095d0cae64c70b4ac7e90af7a6787019cc317a.zip
system_core-21095d0cae64c70b4ac7e90af7a6787019cc317a.tar.gz
system_core-21095d0cae64c70b4ac7e90af7a6787019cc317a.tar.bz2
fs_mgr: correct warning on unused function parameter
target thumb C: libfs_mgr <= system/core/fs_mgr/fs_mgr.c system/core/fs_mgr/fs_mgr.c: In function 'fs_mgr_add_entry': system/core/fs_mgr/fs_mgr.c:828:56: warning: unused parameter 'length' [-Wunused-parameter] const char *blk_device, long long length) Change-Id: Ide1bfa120c4f8d8e2f643929cb84c1be065e3310
-rw-r--r--fs_mgr/fs_mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c
index 6d9d20c..2ba8017 100644
--- a/fs_mgr/fs_mgr.c
+++ b/fs_mgr/fs_mgr.c
@@ -821,7 +821,7 @@ int fs_mgr_get_crypt_info(struct fstab *fstab, char *key_loc, char *real_blk_dev
/* Add an entry to the fstab, and return 0 on success or -1 on error */
int fs_mgr_add_entry(struct fstab *fstab,
const char *mount_point, const char *fs_type,
- const char *blk_device, long long length)
+ const char *blk_device, long long length __attribute__(unused))
{
struct fstab_rec *new_fstab_recs;
int n = fstab->num_entries;