Commit 89036b9f authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

Fixed error in test that caused following tests to fail

extra/yassl/taocrypt/src/dsa.cpp:
  Fixed compiler warning by adding cast
mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test:
  We have to first test for have_debug_sync to not start master wrongly
plugin/auth_pam/auth_pam.c:
  Fixed compiler warning
sql/sys_vars.h:
  Fixed compiler warning (Sys_var_max_user_conn is now signed)
support-files/compiler_warnings.supp:
  Don't give warnings for auth_pam.c (Tried to fix it by changing the code, but could not find an easy way to do that on solaris)
parent a1bc3936
...@@ -184,7 +184,7 @@ word32 DSA_Signer::Sign(const byte* sha_digest, byte* sig, ...@@ -184,7 +184,7 @@ word32 DSA_Signer::Sign(const byte* sha_digest, byte* sig,
s_ = (kInv * (H + x*r_)) % q; s_ = (kInv * (H + x*r_)) % q;
if (!(!!r_ && !!s_)) if (!(!!r_ && !!s_))
return -1; return (word32) -1;
int rSz = r_.ByteCount(); int rSz = r_.ByteCount();
......
source include/master-slave.inc;
source include/have_debug_sync.inc; source include/have_debug_sync.inc;
source include/master-slave.inc;
--echo # connection: slave --echo # connection: slave
connection slave; connection slave;
......
...@@ -107,7 +107,7 @@ static int conv(int n, const struct pam_message **msg, ...@@ -107,7 +107,7 @@ static int conv(int n, const struct pam_message **msg,
#define DO(X) if ((status = (X)) != PAM_SUCCESS) goto end #define DO(X) if ((status = (X)) != PAM_SUCCESS) goto end
#ifdef SOLARIS #if defined(SOLARIS) || defined(__sun)
typedef void** pam_get_item_3_arg; typedef void** pam_get_item_3_arg;
#else #else
typedef const void** pam_get_item_3_arg; typedef const void** pam_get_item_3_arg;
......
...@@ -959,7 +959,7 @@ class Sys_var_max_user_conn: public Sys_var_int ...@@ -959,7 +959,7 @@ class Sys_var_max_user_conn: public Sys_var_int
Sys_var_max_user_conn(const char *name_arg, Sys_var_max_user_conn(const char *name_arg,
const char *comment, int flag_args, ptrdiff_t off, size_t size, const char *comment, int flag_args, ptrdiff_t off, size_t size,
CMD_LINE getopt, CMD_LINE getopt,
uint min_val, uint max_val, uint def_val, int min_val, int max_val, int def_val,
uint block_size, PolyLock *lock=0, uint block_size, PolyLock *lock=0,
enum binlog_status_enum binlog_status_arg=VARIABLE_NOT_IN_BINLOG, enum binlog_status_enum binlog_status_arg=VARIABLE_NOT_IN_BINLOG,
on_check_function on_check_func=0, on_check_function on_check_func=0,
......
...@@ -163,6 +163,7 @@ mySTL/algorithm\.hpp: is used uninitialized in this function ...@@ -163,6 +163,7 @@ mySTL/algorithm\.hpp: is used uninitialized in this function
# #
.*/my_config\.h : _FILE_OFFSET_BITS .*/my_config\.h : _FILE_OFFSET_BITS
/usr/include/sys/feature_tests.h : this is the location of the previous definition /usr/include/sys/feature_tests.h : this is the location of the previous definition
*auth_pam\.c : initialization from incompatible pointer type : 100-200
# #
# Unexplanable (?) stuff # Unexplanable (?) stuff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment