summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/z_Windows_NT_util.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2017-07-07 21:06:05 +0000
committerEd Maste <emaste@freebsd.org>2017-07-07 21:06:05 +0000
commit414544c9aab50bb86fd1d3c78a8f082a4641ec7d (patch)
treea54b3f58ea83962194f1e72df17b91bd2a3ac51f /openmp/runtime/src/z_Windows_NT_util.cpp
parent94b98b2cafad761a9c2e4fd09d7c04fd8948f2d9 (diff)
downloadbcm5719-llvm-414544c9aab50bb86fd1d3c78a8f082a4641ec7d.tar.gz
bcm5719-llvm-414544c9aab50bb86fd1d3c78a8f082a4641ec7d.zip
remove deprecated register storage class specifier
While importing libomp into the FreeBSD base system we encountered Clang warnings that "'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register]". Differential Revision: https://reviews.llvm.org/D35124 llvm-svn: 307441
Diffstat (limited to 'openmp/runtime/src/z_Windows_NT_util.cpp')
-rw-r--r--openmp/runtime/src/z_Windows_NT_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Windows_NT_util.cpp b/openmp/runtime/src/z_Windows_NT_util.cpp
index 4854d9dbcce..49295a573ea 100644
--- a/openmp/runtime/src/z_Windows_NT_util.cpp
+++ b/openmp/runtime/src/z_Windows_NT_util.cpp
@@ -1232,7 +1232,7 @@ static void __kmp_reap_common(kmp_info_t *th) {
// TODO: This code is very similar to KMP_WAIT_YIELD. Need to generalize
// KMP_WAIT_YIELD to cover this usage also.
void *obj = NULL;
- register kmp_uint32 spins;
+ kmp_uint32 spins;
#if USE_ITT_BUILD
KMP_FSYNC_SPIN_INIT(obj, (void *)&th->th.th_info.ds.ds_alive);
#endif /* USE_ITT_BUILD */
OpenPOWER on IntegriCloud