summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_error.c
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 19:25:25 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 19:25:25 +0000
commit2321d57f8b0d42f6ac5c4173478db1abaa20bb46 (patch)
tree52335e136b904a118463420596ac6a4888960b26 /openmp/runtime/src/kmp_error.c
parent23153330720a23471007c16e3d5f9e0a944aaf97 (diff)
downloadbcm5719-llvm-2321d57f8b0d42f6ac5c4173478db1abaa20bb46.tar.gz
bcm5719-llvm-2321d57f8b0d42f6ac5c4173478db1abaa20bb46.zip
Remove unused variable warnings by adding proper macro guards.
As an ongoing effort to sanitize the openmp code, these changes remove unused variables by adding proper macros around both variables and functions. Patch by Jack Howarth llvm-svn: 239330
Diffstat (limited to 'openmp/runtime/src/kmp_error.c')
-rw-r--r--openmp/runtime/src/kmp_error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_error.c b/openmp/runtime/src/kmp_error.c
index f7c7c8e52f1..22caf27bed8 100644
--- a/openmp/runtime/src/kmp_error.c
+++ b/openmp/runtime/src/kmp_error.c
@@ -206,6 +206,7 @@ __kmp_free_cons_stack( void * ptr ) {
}
+#if KMP_DEBUG
static void
dump_cons_stack( int gtid, struct cons_header * p ) {
int i;
@@ -224,6 +225,7 @@ dump_cons_stack( int gtid, struct cons_header * p ) {
__kmp_debug_printf( "%s", buffer.str );
__kmp_str_buf_free( & buffer );
}
+#endif
void
__kmp_push_parallel( int gtid, ident_t const * ident )
OpenPOWER on IntegriCloud