summaryrefslogtreecommitdiff
path: root/mysys/my_thr_init.c
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-10-22 18:44:51 +0300
committermonty@mysql.com <>2004-10-22 18:44:51 +0300
commit3afecef4df146c1a44f7f17f640f365e251c4438 (patch)
tree6faefd7a2f197f4031ef94eb74fc71f8f2936185 /mysys/my_thr_init.c
parent97b4a3415dd2f107c925496fa5c0c0cd96d5db3c (diff)
downloadmariadb-git-3afecef4df146c1a44f7f17f640f365e251c4438.tar.gz
Fix compiler warnings (detected by Intel's C++ compiler)
Fixed checking of privilege handling in CREATE ... SELECT (Bug #6094)
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r--mysys/my_thr_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index 0ce59bee346..36b37f68b46 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -64,6 +64,11 @@ my_bool my_thread_global_init(void)
}
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_init(&my_fast_mutexattr);
+ /*
+ Note that the following statement may give a compiler warning under
+ some configurations, but there isn't anything we can do about this as
+ this is a bug in the header files for the thread implementation
+ */
pthread_mutexattr_setkind_np(&my_fast_mutexattr,PTHREAD_MUTEX_ADAPTIVE_NP);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP