aboutsummaryrefslogtreecommitdiff
path: root/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
commit2b9968a2f9b9ef9887769168407b4687e861e3b6 (patch)
tree177d33520d8e99a8a7f07b970bf13b56f9684ee1 /runtime/src/kmp_stub.cpp
parentd97a5dfc16407bf9b934445dc5f1a223e3208436 (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@339393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/src/kmp_stub.cpp')
-rw-r--r--runtime/src/kmp_stub.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/src/kmp_stub.cpp b/runtime/src/kmp_stub.cpp
index 4051d9e..6e11e82 100644
--- a/runtime/src/kmp_stub.cpp
+++ b/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() {