[cairo-bugs] [Bug 51633] Fix on 1.12 for unsupported -Wno option detection

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 21 09:35:35 PDT 2012


Chris Wilson <chris at chris-wilson.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Chris Wilson <chris at chris-wilson.co.uk> ---
commit d49b2284b505e93cd415af4da3cd2cc2d3d168d3
Author: Gilles Espinasse <g.esp at free.fr>
Date:   Sat Oct 20 20:22:51 2012 +0200

    configure: fix unrecognized -Wno option

    gcc-4.4 and later accept every -Wno option. So we can test for the
    option without no in the name to check if the option is supported.

    Each time a warning is emitted and without this fix, on gcc-4.4 that will
    add this warning:
       cc1: warning: unrecognized command line option

    bugs.freedesktop.org #51633, rediffed after 1.12.4

    Of course this assumes that all compilers will behave like gcc, which is
    reasonably implicit in the set of warning flags.

    Signed-off-by: Gilles Espinasse <g.esp at free.fr>
    [ickle: slight modification to test both -W and -Wno variants to ideally
    preserve compatability with non-GCC compilers sharing GCC options!]

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20121021/0b8fb212/attachment.html>

More information about the cairo-bugs mailing list