[rtems commit] gen5200/include/bsp/ata.h: Fix warning
Joel Sherrill
joel at rtems.org
Mon Aug 13 15:44:44 UTC 2018
Module: rtems
Branch: master
Commit: 7de518299966ea7558be7e951bb9627af2cf0377
Changeset: http://git.rtems.org/rtems/commit/?id=7de518299966ea7558be7e951bb9627af2cf0377
Author: Joel Sherrill <joel at rtems.org>
Date: Fri Aug 10 08:18:59 2018 -0500
gen5200/include/bsp/ata.h: Fix warning
---
bsps/powerpc/gen5200/include/bsp/ata.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsps/powerpc/gen5200/include/bsp/ata.h b/bsps/powerpc/gen5200/include/bsp/ata.h
index 3d8ccfc..4b31ade 100644
--- a/bsps/powerpc/gen5200/include/bsp/ata.h
+++ b/bsps/powerpc/gen5200/include/bsp/ata.h
@@ -254,12 +254,14 @@ static inline void ata_driver_lock(const ata_driver *self)
{
rtems_status_code sc = rtems_semaphore_obtain(self->lock, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc;
}
static inline void ata_driver_unlock(const ata_driver *self)
{
rtems_status_code sc = rtems_semaphore_release(self->lock);
assert(sc == RTEMS_SUCCESSFUL);
+ (void) sc;
}
static inline bool ata_driver_is_card_present(const ata_driver *self)
More information about the vc
mailing list