Skip to content

Commit 9543a35

Browse files
author
Tor Didriksen
committed
Merge 5.5 => trunk
2 parents ef311ca + 3053c11 commit 9543a35

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

mysys/stacktrace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void my_print_stacktrace(uchar* stack_bottom __attribute__((unused)),
166166
my_safe_printf_stderr("%s",
167167
"Error when traversing the stack, stack appears corrupt.\n");
168168
else
169-
my_safe_printf_stderr("%s"
169+
my_safe_printf_stderr("%s",
170170
"Please read "
171171
"http://dev.mysql.com/doc/refman/5.1/en/resolve-stack-dump.html\n"
172172
"and follow instructions on how to resolve the stack trace.\n"

sql/mysqld.cc

-4
Original file line numberDiff line numberDiff line change
@@ -2564,10 +2564,6 @@ static void check_data_home(const char *path)
25642564

25652565
#endif /* __WIN__ */
25662566

2567-
#ifdef HAVE_LINUXTHREADS
2568-
#define UNSAFE_DEFAULT_LINUX_THREADS 200
2569-
#endif
2570-
25712567

25722568
#if BACKTRACE_DEMANGLE
25732569
#include <cxxabi.h>

sql/signal_handler.cc

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ extern "C" sig_handler handle_fatal_signal(int sig)
132132
"Hope that's ok; if not, decrease some variables in the equation.\n\n");
133133

134134
#if defined(HAVE_LINUXTHREADS)
135+
#define UNSAFE_DEFAULT_LINUX_THREADS 200
135136
if (sizeof(char*) == 4 && thread_count > UNSAFE_DEFAULT_LINUX_THREADS)
136137
{
137138
my_safe_printf_stderr(

storage/innobase/include/sync0rw.ic

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ rw_lock_set_waiter_flag(
9090
rw_lock_t* lock) /*!< in/out: rw-lock */
9191
{
9292
#ifdef INNODB_RW_LOCKS_USE_ATOMICS
93-
os_compare_and_swap_ulint(&lock->waiters, 0, 1);
93+
(void) os_compare_and_swap_ulint(&lock->waiters, 0, 1);
9494
#else /* INNODB_RW_LOCKS_USE_ATOMICS */
9595
lock->waiters = 1;
9696
#endif /* INNODB_RW_LOCKS_USE_ATOMICS */
@@ -107,7 +107,7 @@ rw_lock_reset_waiter_flag(
107107
rw_lock_t* lock) /*!< in/out: rw-lock */
108108
{
109109
#ifdef INNODB_RW_LOCKS_USE_ATOMICS
110-
os_compare_and_swap_ulint(&lock->waiters, 1, 0);
110+
(void) os_compare_and_swap_ulint(&lock->waiters, 1, 0);
111111
#else /* INNODB_RW_LOCKS_USE_ATOMICS */
112112
lock->waiters = 0;
113113
#endif /* INNODB_RW_LOCKS_USE_ATOMICS */

storage/myisam/mi_dynrec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int mi_munmap_file(MI_INFO *info)
117117
{
118118
int ret;
119119
DBUG_ENTER("mi_unmap_file");
120-
if ((ret= my_munmap(info->s->file_map, info->s->mmaped_length)))
120+
if ((ret= my_munmap((void*) info->s->file_map, info->s->mmaped_length)))
121121
DBUG_RETURN(ret);
122122
info->s->file_read= mi_nommap_pread;
123123
info->s->file_write= mi_nommap_pwrite;

0 commit comments

Comments
 (0)