[PATCH 02/10] gen5200/include/bsp/ata.h: Fix warning

Joel Sherrill joel at rtems.org
Fri Aug 10 13:26:58 UTC 2018


---
 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)
-- 
1.8.3.1




More information about the devel mailing list