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:
None 
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
Description:
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:

./BUILD/compile-pentium-debug-max-no-ndb

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.

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

Page generated in 0.056 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.