[rtems commit] score: Avoid unused variable warnings

Sebastian Huber sebh at rtems.org
Wed Feb 17 11:47:12 UTC 2016


Module:    rtems
Branch:    master
Commit:    db329a72c1eda3b8992b139fcde375f3dd697d1a
Changeset: http://git.rtems.org/rtems/commit/?id=db329a72c1eda3b8992b139fcde375f3dd697d1a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  2 15:21:07 2016 +0100

score: Avoid unused variable warnings

---

 cpukit/score/include/rtems/score/isrlock.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/include/rtems/score/isrlock.h b/cpukit/score/include/rtems/score/isrlock.h
index 994eb48..12afd08 100644
--- a/cpukit/score/include/rtems/score/isrlock.h
+++ b/cpukit/score/include/rtems/score/isrlock.h
@@ -254,7 +254,8 @@ typedef struct {
       &( _context )->Lock_context \
     )
 #else
-  #define _ISR_lock_Acquire( _lock, _context )
+  #define _ISR_lock_Acquire( _lock, _context ) \
+    (void) _context;
 #endif
 
 /**
@@ -276,7 +277,8 @@ typedef struct {
       &( _context )->Lock_context \
     )
 #else
-  #define _ISR_lock_Release( _lock, _context )
+  #define _ISR_lock_Release( _lock, _context ) \
+    (void) _context;
 #endif
 
 /**



More information about the vc mailing list