diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-08 18:56:33 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-08 18:56:33 +0000 |
commit | e8104ad0e8bbf25c084068378c3856df1861de2c (patch) | |
tree | 5e0df3331542207b0ef15b22a447c8bcee29f10d /openmp/runtime/src/z_Linux_util.c | |
parent | 4a61619ff508e8351d957f8ba3b0a37266d3095e (diff) | |
download | bcm5719-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/z_Linux_util.c')
-rw-r--r-- | openmp/runtime/src/z_Linux_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Linux_util.c b/openmp/runtime/src/z_Linux_util.c index c624c9d9f09..4db74fbb441 100644 --- a/openmp/runtime/src/z_Linux_util.c +++ b/openmp/runtime/src/z_Linux_util.c @@ -1114,9 +1114,11 @@ __kmp_create_monitor( kmp_info_t *th ) pthread_attr_t thread_attr; size_t size; int status; - int caller_gtid = __kmp_get_gtid(); + int caller_gtid; int auto_adj_size = FALSE; + caller_gtid = __kmp_get_gtid(); + KA_TRACE( 10, ("__kmp_create_monitor: try to create monitor\n" ) ); KMP_MB(); /* Flush all pending memory write invalidates. */ |