[rtems commit] Fix building with RTEMS_DEBUG.
Chris Johns
chrisj at rtems.org
Mon Sep 30 06:07:49 UTC 2013
Module: rtems
Branch: master
Commit: 85c855af7e5b368edf72f55436a01f07beef37f3
Changeset: http://git.rtems.org/rtems/commit/?id=85c855af7e5b368edf72f55436a01f07beef37f3
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Sep 30 16:10:45 2013 +1000
Fix building with RTEMS_DEBUG.
---
cpukit/posix/src/sigsuspend.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/cpukit/posix/src/sigsuspend.c b/cpukit/posix/src/sigsuspend.c
index ab935d1..4abd89c 100644
--- a/cpukit/posix/src/sigsuspend.c
+++ b/cpukit/posix/src/sigsuspend.c
@@ -33,6 +33,9 @@ int sigsuspend(
{
sigset_t saved_signals_blocked;
sigset_t current_unblocked_signals;
+#if defined(RTEMS_DEBUG)
+ int status;
+#endif
/*
* We use SIG_BLOCK and not SIG_SETMASK because there may be
@@ -40,13 +43,24 @@ int sigsuspend(
* We want the signals to be caught inside sigtimedwait.
*
* We ignore the return status codes because sigsuspend() is
- * defined to either terminate or return -1 with errno set to
+ * defined to either terminate or return -1 with errno set to
* EINTR.
*/
- (void) sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
+#if defined(RTEMS_DEBUG)
+ status =
+#else
+ (void)
+#endif
+ sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
current_unblocked_signals = ~(*sigmask);
- (void) sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
+
+ #if defined(RTEMS_DEBUG)
+ status =
+#else
+ (void)
+#endif
+ sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
More information about the vc
mailing list