Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

On 07.07.2012 18:10, Terrence Enger wrote:
Around 2012-07-07 00:45 UTC, I pulled master commit 2758492 and tried
to build on ubuntu-natty (11.04), which has gcc version 4.5.2.  The
gcc compiles downstream from files cfglex.l, xrmlex.l, and srclex.l in
l10ntools/source/ each failed with the message

     error: unknown option after ‘#pragma GCC diagnostic’ kind

Each time, the offending line was

     #pragma GCC diagnostic ignored "-Wunused-but-set-variable"


Taking a hint from <https://lkml.org/lkml/2011/7/26/488>, I
conditioned the three lines by

     #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))

which allows a successful build.  I attach a patch, just in case this
situation of interest and this is the right solution; my blanket
licence statement is on file.
Pushed, thanks for that!
The problem was introduced during gbuild'ification of l10ntools module.
We changed it from wrapping to using the generated files directly
(we used ignore system header instead of diagnsoric pragma).

I extended your patch and added the "-w" option to hide these ugly flex warnings.
I forgot it during gbuildi'ification ;-)

May I kindly ask you to use in future our new Code Review System gerrit:
https://gerrit.libreoffice.org/
instead of sending patches to dev ML?
You can find the infos how to register, configure and use it here:

https://wiki.documentfoundation.org/Development/gerrit/setup
https://wiki.documentfoundation.org/Development/GitReview

If you have questions or want provide feedback, you can ask on ML
or catch gerrit guys on IRC: Sweetshark, shm_get and reinsle.

Regards
David



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.