Bug #57881 Debug build breaks on linux due to compiler warning in mysqlbinlog.cc
Submitted: 1 Nov 2010 8:35 Modified: 1 Nov 2010 14:29
Reporter: John Embretsen Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Replication Severity:S1 (Critical)
Version:5.6.1 OS:Linux (Debug)
Assigned to: Tor Didriksen CPU Architecture:Any
Tags: pushbuild

[1 Nov 2010 8:35] John Embretsen
Debug builds break on linux in mysql-trunk-bugfixing with the following symptom:

cc1plus: warnings being treated as errors
/export/home2/pb2/build/sb_1-2468780-1288379663.47/mysql-5.6.1-m4/client/mysqlbinlog.cc:652: warning: 'Exit_status write_event_header_and_base64(Log_event*, FILE*, PRINT_EVENT_INFO*)' defined but not used
gmake[2]: *** [client/CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o] Error 1 gmake[1]: *** [client/CMakeFiles/mysqlbinlog.dir/all] Error 2 

This started occurring after the push/merge of WL#5625, revid sven.sandberg@oracle.com-20101029155709-5ookpv1lpuxuzboy.

How to repeat:
Build debug binaries of MySQL on Linux platform with warnings treated as errors.

This should suffice:


Suggested fix:
Remove unused stuff in code. 
Build debug builds and look for new compiler warnings before pushing code (including merges).
[1 Nov 2010 14:29] Tor Didriksen
Already fixed and pushed.