summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_csupport.c
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 18:56:33 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 18:56:33 +0000
commite8104ad0e8bbf25c084068378c3856df1861de2c (patch)
tree5e0df3331542207b0ef15b22a447c8bcee29f10d /openmp/runtime/src/kmp_csupport.c
parent4a61619ff508e8351d957f8ba3b0a37266d3095e (diff)
downloadbcm5719-llvm-e8104ad0e8bbf25c084068378c3856df1861de2c.tar.gz
bcm5719-llvm-e8104ad0e8bbf25c084068378c3856df1861de2c.zip
Remove unused variable warnings by fooling compiler.
Some variables are convenient to keep around even if they aren't really used in a release build. This is often seen in DEBUG guarded code where the variable is only used in a DEBUG build. Patch by Jack Howarth llvm-svn: 239326
Diffstat (limited to 'openmp/runtime/src/kmp_csupport.c')
-rw-r--r--openmp/runtime/src/kmp_csupport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_csupport.c b/openmp/runtime/src/kmp_csupport.c
index f0cb4a85382..332160cbd0c 100644
--- a/openmp/runtime/src/kmp_csupport.c
+++ b/openmp/runtime/src/kmp_csupport.c
@@ -2148,7 +2148,8 @@ __kmpc_unset_nest_lock( ident_t *loc, kmp_int32 gtid, void **user_lock )
__kmp_itt_lock_releasing( lck );
#endif /* USE_ITT_BUILD */
- int release_status = RELEASE_NESTED_LOCK( lck, gtid );
+ int release_status;
+ release_status = RELEASE_NESTED_LOCK( lck, gtid );
#if OMPT_SUPPORT && OMPT_BLAME
if (ompt_status == ompt_status_track_callback) {
if (release_status == KMP_LOCK_RELEASED) {
OpenPOWER on IntegriCloud