mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Bug #43414 Parenthesis (and other) warnings compiling
MySQL with gcc 4.3.2 This is the final patch in the context of this bug. cmd-line-utils/readline/rlmbutil.h: Changed in a previous patch, reverted by a backport. cmd-line-utils/readline/text.c: Static var initialization. extra/yassl/include/yassl_error.hpp: SetErrorString handles errors outside of the YasslError enum. extra/yassl/src/ssl.cpp: SetErrorString handles errors outside of the YasslError enum. extra/yassl/src/yassl_error.cpp: SetErrorString handles errors outside of the YasslError enum.
This commit is contained in:
@@ -109,8 +109,8 @@ extern int _rl_is_mbchar_matched PARAMS((char *, int, int, char *, int));
|
|||||||
extern wchar_t _rl_char_value PARAMS((char *, int));
|
extern wchar_t _rl_char_value PARAMS((char *, int));
|
||||||
extern int _rl_walphabetic PARAMS((wchar_t));
|
extern int _rl_walphabetic PARAMS((wchar_t));
|
||||||
|
|
||||||
#define _rl_to_wupper(wc) (iswlower (wc) ? towupper (wc) : (wc))
|
#define _rl_to_wupper(wc) (iswlower (wc) ? (wchar_t)towupper (wc) : (wc))
|
||||||
#define _rl_to_wlower(wc) (iswupper (wc) ? towlower (wc) : (wc))
|
#define _rl_to_wlower(wc) (iswupper (wc) ? (wchar_t)towlower (wc) : (wc))
|
||||||
|
|
||||||
#define MB_NEXTCHAR(b,s,c,f) \
|
#define MB_NEXTCHAR(b,s,c,f) \
|
||||||
((MB_CUR_MAX > 1 && rl_byte_oriented == 0) \
|
((MB_CUR_MAX > 1 && rl_byte_oriented == 0) \
|
||||||
|
@@ -614,7 +614,7 @@ rl_arrow_keys (count, c)
|
|||||||
#ifdef HANDLE_MULTIBYTE
|
#ifdef HANDLE_MULTIBYTE
|
||||||
static char pending_bytes[MB_LEN_MAX];
|
static char pending_bytes[MB_LEN_MAX];
|
||||||
static int pending_bytes_length = 0;
|
static int pending_bytes_length = 0;
|
||||||
static mbstate_t ps = {0};
|
static mbstate_t ps;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Insert the character C at the current location, moving point forward.
|
/* Insert the character C at the current location, moving point forward.
|
||||||
|
@@ -64,7 +64,7 @@ enum YasslError {
|
|||||||
enum Library { yaSSL_Lib = 0, CryptoLib, SocketLib };
|
enum Library { yaSSL_Lib = 0, CryptoLib, SocketLib };
|
||||||
enum { MAX_ERROR_SZ = 80 };
|
enum { MAX_ERROR_SZ = 80 };
|
||||||
|
|
||||||
void SetErrorString(YasslError, char*);
|
void SetErrorString(unsigned long, char*);
|
||||||
|
|
||||||
/* remove for now, if go back to exceptions use this wrapper
|
/* remove for now, if go back to exceptions use this wrapper
|
||||||
// Base class for all yaSSL exceptions
|
// Base class for all yaSSL exceptions
|
||||||
|
@@ -991,7 +991,7 @@ char* ERR_error_string(unsigned long errNumber, char* buffer)
|
|||||||
static char* msg = (char*)"Please supply a buffer for error string";
|
static char* msg = (char*)"Please supply a buffer for error string";
|
||||||
|
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
SetErrorString(YasslError(errNumber), buffer);
|
SetErrorString(errNumber, buffer);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -55,7 +55,7 @@ Library Error::get_lib() const
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
void SetErrorString(YasslError error, char* buffer)
|
void SetErrorString(unsigned long error, char* buffer)
|
||||||
{
|
{
|
||||||
using namespace TaoCrypt;
|
using namespace TaoCrypt;
|
||||||
const int max = MAX_ERROR_SZ; // shorthand
|
const int max = MAX_ERROR_SZ; // shorthand
|
||||||
|
@@ -8753,7 +8753,7 @@ static bool record_compare(TABLE *table)
|
|||||||
DBUG_DUMP("record[1]", table->record[1], table->s->reclength);
|
DBUG_DUMP("record[1]", table->record[1], table->s->reclength);
|
||||||
|
|
||||||
bool result= FALSE;
|
bool result= FALSE;
|
||||||
uchar saved_x[2], saved_filler[2];
|
uchar saved_x[2]= {0, 0}, saved_filler[2]= {0, 0};
|
||||||
|
|
||||||
if (table->s->null_bytes > 0)
|
if (table->s->null_bytes > 0)
|
||||||
{
|
{
|
||||||
|
@@ -337,7 +337,7 @@ static bool record_compare(TABLE *table)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
bool result= FALSE;
|
bool result= FALSE;
|
||||||
uchar saved_x[2], saved_filler[2];
|
uchar saved_x[2]= {0, 0}, saved_filler[2]= {0, 0};
|
||||||
|
|
||||||
if (table->s->null_bytes > 0)
|
if (table->s->null_bytes > 0)
|
||||||
{
|
{
|
||||||
|
@@ -1283,7 +1283,8 @@ bool mysql_multi_update(THD *thd,
|
|||||||
|
|
||||||
if (using_handler)
|
if (using_handler)
|
||||||
{
|
{
|
||||||
Internal_error_handler *top_handler= thd->pop_internal_handler();
|
Internal_error_handler *top_handler;
|
||||||
|
top_handler= thd->pop_internal_handler();
|
||||||
DBUG_ASSERT(&handler == top_handler);
|
DBUG_ASSERT(&handler == top_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user