[cairo] [PATCH 5/5] fallback: Silence gcc warning

Andrea Canciani ranma42 at gmail.com
Fri Mar 18 15:42:54 PDT 2011


On Fri, Mar 18, 2011 at 10:35 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 03/18/11 18:26, Andrea Canciani wrote:
>> He suggests a behavior, but does not provide a solution.
>
> Just mark the function cairo_private_no_warn instead of cairo_private.  At
> some point we decided that we prefer to default to warn instead of no_warn, so
> that's what cairo_private expands to, which is unintuitive to say the least.

This definitely looks like what I should have done!
In fact I'm now also trying to cleanup the "useless" variables
sprinkled through the code.

Thank you for pointing out this attribute!

Andrea


More information about the cairo mailing list