summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_debug.h')
-rw-r--r--openmp/runtime/src/kmp_debug.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_debug.h b/openmp/runtime/src/kmp_debug.h
index 729677790e2..abc923edc64 100644
--- a/openmp/runtime/src/kmp_debug.h
+++ b/openmp/runtime/src/kmp_debug.h
@@ -42,7 +42,11 @@
#define __KMP_BUILD_ASSERT( expr, suffix ) typedef char __kmp_build_check_##suffix[ (expr) ? 1 : -1 ]
#define _KMP_BUILD_ASSERT( expr, suffix ) __KMP_BUILD_ASSERT( (expr), suffix )
-#define KMP_BUILD_ASSERT( expr ) _KMP_BUILD_ASSERT( (expr), __LINE__ )
+#ifdef KMP_USE_ASSERT
+ #define KMP_BUILD_ASSERT( expr ) _KMP_BUILD_ASSERT( (expr), __LINE__ )
+#else
+ #define KMP_BUILD_ASSERT( expr ) /* nothing to do */
+#endif
// -------------------------------------------------------------------------------------------------
// Run-time assertions.
OpenPOWER on IntegriCloud