summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 15:56:54 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-16 08:58:46 -0500
commit23de6fa8ca577154597726670cf3c4c421ff07cd (patch)
tree710c888ae4e0824dd0925e94b2f3c4bf9efaad15
parentbf49991faa4cb10524b11f483eb68d94ae4b2d35 (diff)
downloadrtems-23de6fa8ca577154597726670cf3c4c421ff07cd.tar.bz2
jffs2/src/fs-rtems.c: Eliminate set but not used warnings
-rw-r--r--cpukit/libfs/src/jffs2/src/fs-rtems.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libfs/src/jffs2/src/fs-rtems.c b/cpukit/libfs/src/jffs2/src/fs-rtems.c
index 00a52bd796..ceeb6094a0 100644
--- a/cpukit/libfs/src/jffs2/src/fs-rtems.c
+++ b/cpukit/libfs/src/jffs2/src/fs-rtems.c
@@ -318,12 +318,14 @@ static void rtems_jffs2_do_lock(const struct super_block *sb)
{
rtems_status_code sc = rtems_semaphore_obtain(sb->s_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc; /* avoid unused variable warning */
}
static void rtems_jffs2_do_unlock(const struct super_block *sb)
{
rtems_status_code sc = rtems_semaphore_release(sb->s_mutex);
assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc; /* avoid unused variable warning */
}
static void rtems_jffs2_free_directory_entries(struct _inode *inode)
@@ -366,6 +368,7 @@ static void rtems_jffs2_free_fs_info(rtems_jffs2_fs_info *fs_info, bool do_mount
if (sb->s_mutex != 0) {
rtems_status_code sc = rtems_semaphore_delete(sb->s_mutex);
assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc; /* avoid unused variable warning */
}
rtems_jffs2_flash_control_destroy(fs_info->sb.s_flash_control);