Skip to content

Commit 62fd6b9

Browse files
authored
Merge pull request #1917 from hjelmn/warnings
opal/thread: fix warnings
2 parents 835657e + 325c9ba commit 62fd6b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

opal/threads/thread_usage.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ static inline type opal_thread_add_ ## suffix (volatile type *addr, type delta)
106106
#define OPAL_THREAD_DEFINE_ATOMIC_CMPSET(type, addr_type, suffix) \
107107
static inline bool opal_thread_cmpset_bool_ ## suffix (volatile addr_type *addr, type compare, type value) \
108108
{ \
109-
type ret; \
110-
\
111109
if (OPAL_UNLIKELY(opal_using_threads())) { \
112110
return opal_atomic_cmpset_ ## suffix ((volatile type *) addr, compare, value); \
113111
} \

0 commit comments

Comments
 (0)