Bug #29691 Falcon: -Wno-invalid-offsetof is not recognized on all versions of gcc
Submitted: 10 Jul 2007 15:23 Modified: 14 Jul 2007 21:45
Reporter: Hakan Küçükyılmaz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version: OS:Any (gcc)
Assigned to: Christoffer Hall CPU Architecture:Any
Tags: -Wno-invalid-offsetof, falcon

[10 Jul 2007 15:23] Hakan Küçükyılmaz
Description:
Compiling latest Falcon on SLES 9 leads to compile error:

cc1plus: error: unrecognized option `-Wno-invalid-offsetof'

How to repeat:
Compile latest Falcon on SLES 9 or a system with gcc < 3.3

Suggested fix:
Make the -Wno-invalid-offsetof flag conditional
[11 Jul 2007 10:25] Christoffer Hall
Does the "invalid use of offsetof" show up with gcc < 3.3 ?
[13 Jul 2007 9:15] Christoffer Hall
A fix to the build system should fix this. It is pushed to the falcon tree.
[13 Jul 2007 9:31] Christoffer Hall
Too quick on the trigger. Should not have closed it. Put into state documenting.
[14 Jul 2007 21:45] Paul DuBois
No changelog entry needed.