summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 20:18:10 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-06-08 20:18:10 +0000
commitcf82a16b8c2ae288d3719123203d04d7efc54265 (patch)
tree2848773c87bf68781297194bbcd52fbbf57ab941 /openmp/runtime/src
parente70b31fc1b51d6ca697c66b03ec999b69c8e0506 (diff)
downloadbcm5719-llvm-cf82a16b8c2ae288d3719123203d04d7efc54265.tar.gz
bcm5719-llvm-cf82a16b8c2ae288d3719123203d04d7efc54265.zip
Remove unused variables '__kmp_build_check_*'
As an ongoing effort to sanitize the openmp code, this one word change eliminates creating 1 byte arrays named __kmp_build_check_* and instead creates one byte array types. The KMP_BUILD_ASSERT macro still offers the same functionality; array types with negative number of elements is illegal and will cause a compiler failure. llvm-svn: 239337
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_debug.h b/openmp/runtime/src/kmp_debug.h
index b41e03c8dea..729677790e2 100644
--- a/openmp/runtime/src/kmp_debug.h
+++ b/openmp/runtime/src/kmp_debug.h
@@ -40,7 +40,7 @@
Do not use _KMP_BUILD_ASSERT and __KMP_BUILD_ASSERT directly, it is working guts.
*/
-#define __KMP_BUILD_ASSERT( expr, suffix ) static char __kmp_build_check_##suffix[ (expr) ? 1 : -1 ]
+#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__ )
OpenPOWER on IntegriCloud