Bug #24468 Warnings when compiling replication code

Submitted: 21 Nov 2006 11:16 Modified: 10 Jan 2013 11:22
Reporter: Lars Thalmann Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[21 Nov 2006 11:16] Lars Thalmann
Description:
Brian has detected warnings when compliling replication code:

On Sun, Nov 19, 2006 at 04:37:00PM +0100, Brian Aker wrote:
> log_event.cc: In constructor ???Query_log_event::Query_log_event(THD*,  
> const char*, ulong, bool, bool)???:
> log_event.cc:1486: warning: format ???%lu??? expects type ???long  
> unsigned int???, but argument 2 has type ???uint32???
> log_event.cc: In constructor ???Query_log_event::Query_log_event 
> (const char*, uint, const Format_description_log_event*,  
> Log_event_type)???:
> log_event.cc:1534: warning: format ???%ld??? expects type ???long  
> int???, but argument 2 has type ???uint???
> log_event.cc:1582: warning: format ???%lu??? expects type ???long  
> unsigned int???, but argument 2 has type ???uint32???
> log_event.cc: In constructor ???Rotate_log_event::Rotate_log_event 
> (const char*, uint, ulonglong, uint)???:
> log_event.cc:3357: warning: format ???%lu??? expects type ???long  
> unsigned int???, but argument 4 has type ???uint???
> log_event.cc: In constructor ???Slave_log_event::Slave_log_event 
> (THD*, st_relay_log_info*)???:
> log_event.cc:4139: warning: format ???%d??? expects type ???int???,  
> but argument 3 has type ???long unsigned int???
> log_event.cc: In constructor ???Rows_log_event::Rows_log_event(const  
> char*, uint, Log_event_type, const Format_description_log_event*)???:
> log_event.cc:5331: warning: format ???%ld??? expects type ???long  
> int???, but argument 2 has type ???uint???
> log_event.cc:5362: warning: format ???%u??? expects type ???unsigned  
> int???, but argument 4 has type ???ulong???
> log_event.cc: In constructor  
> ???Table_map_log_event::Table_map_log_event(const char*, uint, const  
> Format_description_log_event*)???:
> log_event.cc:6047: warning: format ???%ld??? expects type ???long  
> int???, but argument 2 has type ???uint???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 2 has type ???my_size_t???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 3 has type ???long int???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 4 has type ???my_size_t???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 5 has type ???long int???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 6 has type ???ulong???
> log_event.cc:6089: warning: format ???%d??? expects type ???int???,  
> but argument 7 has type ???long int???
> log_event.cc: In function ???int copy_extra_record_fields(TABLE*,  
> my_size_t, my_ptrdiff_t)???:
> log_event.cc:6497: warning: format ???%d??? expects type ???int???,  
> but argument 3 has type ???my_ptrdiff_t???
> log_event.cc:6497: warning: format ???%u??? expects type ???unsigned  
> int???, but argument 4 has type ???my_size_t???
> log_event.cc:6497: warning: format ???%u??? expects type ???unsigned  
> int???, but argument 6 has type ???ulong???

See also BUG#22100

How to repeat:
Compile code
[10 Jan 2013 11:22] Erlend Dahl
No longer repeatable, fixed a long time ago.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.066 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.