[rtems commit] score: Fix unused parameter 'lock' warning

Sebastian Huber sebh at rtems.org
Wed Oct 28 13:53:25 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct 28 13:25:45 2020 +0100

score: Fix unused parameter 'lock' warning

---

 cpukit/include/rtems/score/smplock.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/include/rtems/score/smplock.h b/cpukit/include/rtems/score/smplock.h
index be598d2..8fa756c 100644
--- a/cpukit/include/rtems/score/smplock.h
+++ b/cpukit/include/rtems/score/smplock.h
@@ -201,6 +201,7 @@ static inline void _SMP_lock_Set_name(
 #if defined(RTEMS_PROFILING)
   lock->Stats.name = name;
 #else
+  (void) lock;
   (void) name;
 #endif
 }



More information about the vc mailing list