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