summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_stub.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2018-08-09 22:04:30 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2018-08-09 22:04:30 +0000
commitbaad3f6016b87cbd03578a1df6c6ea69280c4608 (patch)
tree3e56c3fb3ee58e87ca95e731d4ed4ec9eec793c0 /openmp/runtime/src/kmp_stub.cpp
parent7da7b56830d94447e75479cbac71e5813496da38 (diff)
downloadbcm5719-llvm-baad3f6016b87cbd03578a1df6c6ea69280c4608.tar.gz
bcm5719-llvm-baad3f6016b87cbd03578a1df6c6ea69280c4608.zip
[OpenMP] Cleanup code
This patch cleans up unused functions, variables, sign compare issues, and addresses some -Warning flags which are now enabled including -Wcast-qual. Not all the warning flags in LibompHandleFlags.cmake are enabled, but some are with this patch. Some __kmp_gtid_from_* macros in kmp.h are switched to static inline functions which allows us to remove the awkward definition of KMP_DEBUG_ASSERT() and KMP_ASSERT() macros which used the comma operator. This had to be done for the innumerable -Wunused-value warnings related to KMP_DEBUG_ASSERT() Differential Revision: https://reviews.llvm.org/D49105 llvm-svn: 339393
Diffstat (limited to 'openmp/runtime/src/kmp_stub.cpp')
-rw-r--r--openmp/runtime/src/kmp_stub.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_stub.cpp b/openmp/runtime/src/kmp_stub.cpp
index 4051d9e91db..6e11e82fab4 100644
--- a/openmp/runtime/src/kmp_stub.cpp
+++ b/openmp/runtime/src/kmp_stub.cpp
@@ -46,7 +46,9 @@
#define kmp_realloc kmpc_realloc
#define kmp_free kmpc_free
+#if KMP_OS_WINDOWS
static double frequency = 0.0;
+#endif
// Helper functions.
static size_t __kmps_init() {
OpenPOWER on IntegriCloud