| Bug #74710 | Server 5.5 / Debug doesn\'t compile with gcc 4.9.1 | ||
|---|---|---|---|
| Submitted: | 6 Nov 2014 10:55 | Modified: | 6 Nov 2014 18:03 |
| Reporter: | Erlend Dahl | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 5.5.42 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[6 Nov 2014 18:03]
Paul DuBois
Noted in 5.5.42, 5.6.23, 5.7.6 changelogs. MySQL failed to compile with GCC 4.9.1 in debug mode
[11 Feb 2015 9:54]
Laurynas Biveinis
5.5 $ git show 5a59bf7a -s
commit 5a59bf7a8af7f8f8a45c98d6e7315ce081ee8f56
Author: Jon Olav Hauglid <jon.hauglid@oracle.com>
Date: Thu Nov 6 12:14:05 2014 +0100
Bug#19974500: SERVER 5.5 / DEBUG DOESN\'T COMPILE WITH GCC 4.9.1
Fix broken gcc 4.9.1 debug build by removing end of line noise.
In 5.6+ this issue was already fixed by:
------------------------------------------------------------
revno: 3091
committer: Davi Arnaut <davi.arnaut@oracle.com>
branch nick: mysql-trunk
timestamp: Mon 2011-05-16 11:30:54 -0300
message:
Fix warnings emitted by Clang.

Description: Server 5.5 no longer compiles with gcc 4.9.1 when DEBUG is enabled: [ 14%] Building C object mysys/CMakeFiles/mysys.dir/thr_alarm.c.o /home/edahl/bzr/mysql-5.5/mysys/thr_alarm.c: In function ‘thr_end_alarm’: /home/edahl/bzr/mysql-5.5/mysys/thr_alarm.c:257:35: error: right-hand operand of comma expression has no effect [-Werror=unused-value] queue_remove(&alarm_queue,i),MYF(0); ^ cc1: all warnings being treated as errors mysys/CMakeFiles/mysys.dir/build.make:1940: recipe for target 'mysys/CMakeFiles/mysys.dir/thr_alarm.c.o' failed make[2]: *** [mysys/CMakeFiles/mysys.dir/thr_alarm.c.o] Error 1 How to repeat: As above. 5.6/5.7 are fine.