Commit d430e5bf authored by unknown's avatar unknown

Fixed compiler warnings

Fixed wrong hash function prototype (causes failure on 64 bit systems)


mysql-test/r/rpl_events.result:
  Removed wrong merge (result file is now identical as in 5.1 tree)
mysys/lf_hash.c:
  Fixed compiler warning
mysys/my_safehash.c:
  Fixed wrong hash function prototype (causes failure on 64 bit systems)
storage/maria/unittest/ma_test_loghandler_max_lsn-t.c:
  Fixed compiler warning
parent a1f80c1e
...@@ -122,15 +122,13 @@ SELECT * FROM t1 ORDER BY id; ...@@ -122,15 +122,13 @@ SELECT * FROM t1 ORDER BY id;
id c ts id c ts
1 manually TIMESTAMP 1 manually TIMESTAMP
2 from justonce TIMESTAMP 2 from justonce TIMESTAMP
4 from er TIMESTAMP affected rows: 2
affected rows: 3
"Checking event data on the slave" "Checking event data on the slave"
SELECT * FROM t1 ORDER BY id; SELECT * FROM t1 ORDER BY id;
id c ts id c ts
1 manually TIMESTAMP 1 manually TIMESTAMP
2 from justonce TIMESTAMP 2 from justonce TIMESTAMP
4 from er TIMESTAMP affected rows: 2
affected rows: 3
"Checking event is inactive on slave" "Checking event is inactive on slave"
SELECT db, name, status, originator FROM mysql.event WHERE db = 'test' AND name = 'justonce'; SELECT db, name, status, originator FROM mysql.event WHERE db = 'test' AND name = 'justonce';
db name status originator db name status originator
......
...@@ -32,10 +32,10 @@ LF_REQUIRE_PINS(3); ...@@ -32,10 +32,10 @@ LF_REQUIRE_PINS(3);
/* An element of the list */ /* An element of the list */
typedef struct { typedef struct {
intptr volatile link; /* a pointer to the next element in a listand a flag */ intptr volatile link; /* a pointer to the next element in a listand a flag */
uint32 hashnr; /* reversed hash number, for sorting */ uint32 hashnr; /* reversed hash number, for sorting */
const uchar *key; const uchar *key;
uint keylen; size_t keylen;
/* /*
data is stored here, directly after the keylen. data is stored here, directly after the keylen.
thus the pointer to data is (void*)(slist_element_ptr+1) thus the pointer to data is (void*)(slist_element_ptr+1)
...@@ -272,7 +272,7 @@ static LF_SLIST *lsearch(LF_SLIST * volatile *head, CHARSET_INFO *cs, ...@@ -272,7 +272,7 @@ static LF_SLIST *lsearch(LF_SLIST * volatile *head, CHARSET_INFO *cs,
} }
static inline const uchar* hash_key(const LF_HASH *hash, static inline const uchar* hash_key(const LF_HASH *hash,
const uchar *record, uint *length) const uchar *record, size_t *length)
{ {
if (hash->get_key) if (hash->get_key)
return (*hash->get_key)(record, length, 0); return (*hash->get_key)(record, length, 0);
......
...@@ -70,7 +70,7 @@ static void safe_hash_entry_free(SAFE_HASH_ENTRY *entry) ...@@ -70,7 +70,7 @@ static void safe_hash_entry_free(SAFE_HASH_ENTRY *entry)
# reference on the key # reference on the key
*/ */
static uchar *safe_hash_entry_get(SAFE_HASH_ENTRY *entry, uint *length, static uchar *safe_hash_entry_get(SAFE_HASH_ENTRY *entry, size_t *length,
my_bool not_used __attribute__((unused))) my_bool not_used __attribute__((unused)))
{ {
*length= entry->length; *length= entry->length;
......
...@@ -23,7 +23,6 @@ int main(int argc __attribute__((unused)), char *argv[]) ...@@ -23,7 +23,6 @@ int main(int argc __attribute__((unused)), char *argv[])
uchar long_tr_id[6]; uchar long_tr_id[6];
PAGECACHE pagecache; PAGECACHE pagecache;
LSN lsn, max_lsn, last_lsn= LSN_IMPOSSIBLE; LSN lsn, max_lsn, last_lsn= LSN_IMPOSSIBLE;
MY_STAT st;
LEX_STRING parts[TRANSLOG_INTERNAL_PARTS + 1]; LEX_STRING parts[TRANSLOG_INTERNAL_PARTS + 1];
MY_INIT(argv[0]); MY_INIT(argv[0]);
......
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