[rtems commit] testsuites/.../tmacros.h: Add parentheses to fix warning

Joel Sherril joel at rtems.org
Mon Nov 24 19:57:51 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Nov 24 13:57:21 2014 -0600

testsuites/.../tmacros.h: Add parentheses to fix warning

---

 testsuites/support/include/tmacros.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index 4524cf9..2b0df83 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -56,8 +56,8 @@ extern "C" {
  #define check_dispatch_disable_level( _expect ) \
   do { \
     if ( (_expect) != -1 \
-           && ((!_Thread_Dispatch_is_enabled() == false && (_expect) != 0) \
-             || (!_Thread_Dispatch_is_enabled() && (_expect) == 0)) \
+           && (((!_Thread_Dispatch_is_enabled()) == false && (_expect) != 0) \
+             || ((!_Thread_Dispatch_is_enabled()) && (_expect) == 0)) \
     ) { \
       printk( \
         "\n_Thread_Dispatch_disable_level is (%" PRId32 \



More information about the vc mailing list