Skip to content

Commit 0fb7b07

Browse files
committed
opal/progress: fix non debug builds
this bug was introduced in 64b6956 Thanks Pavel (Pasha) Shamis for reporting this issue
1 parent ac34c0e commit 0fb7b07

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

opal/runtime/opal_progress.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* All rights reserved.
1313
* Copyright (c) 2006-2014 Los Alamos National Security, LLC. All rights
1414
* reserved.
15-
* Copyright (c) 2015 Research Organization for Information Science
15+
* Copyright (c) 2015-2016 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
*
1818
* $COPYRIGHT$
@@ -222,6 +222,8 @@ opal_progress_event_users_increment(void)
222222
val = opal_atomic_add_32(&num_event_users, 1);
223223

224224
OPAL_OUTPUT((debug_output, "progress: event_users_increment setting count to %d", val));
225+
#else
226+
(void)opal_atomic_add_32(&num_event_users, 1);
225227
#endif
226228

227229
#if OPAL_PROGRESS_USE_TIMERS
@@ -237,11 +239,13 @@ opal_progress_event_users_increment(void)
237239
void
238240
opal_progress_event_users_decrement(void)
239241
{
240-
#if OPAL_ENABLE_DEBUG
242+
#if OPAL_ENABLE_DEBUG || ! OPAL_PROGRESS_USE_TIMERS
241243
int32_t val;
242244
val = opal_atomic_sub_32(&num_event_users, 1);
243245

244246
OPAL_OUTPUT((debug_output, "progress: event_users_decrement setting count to %d", val));
247+
#else
248+
(void)opal_atomic_sub_32(&num_event_users, 1);
245249
#endif
246250

247251
#if !OPAL_PROGRESS_USE_TIMERS

0 commit comments

Comments
 (0)