diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-25 20:47:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-25 20:47:33 +0000 |
commit | f8b7c83d3719684e38181bb8866110b7d2e4c1b9 (patch) | |
tree | ce544875ba419309bec7f9b878eac8506adf6796 /cpukit/score/src/coremsginsert.c | |
parent | 2010-08-25 Gedare Bloom <giddyup44@yahoo.com> (diff) | |
download | rtems-f8b7c83d3719684e38181bb8866110b7d2e4c1b9.tar.bz2 |
2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 148/STRAY_SEMICOLON
* score/src/coremsginsert.c: Slightly modify macro.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/coremsginsert.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index 686118bb23..0c7d74f6ec 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -59,8 +59,10 @@ void _CORE_message_queue_Insert_message( #if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION) bool notify = false; #define SET_NOTIFY() \ - if ( the_message_queue->number_of_pending_messages == 0 ) - notify = true; + do { \ + if ( the_message_queue->number_of_pending_messages == 0 ) + notify = true; \ + } while (0) #else #define SET_NOTIFY() #endif |