[cairo] [PATCH] Initialize ax and bx to quell warnings.
Bryce Harrington
bryce at bryceharrington.org
Tue Jun 11 19:26:19 PDT 2013
On Tue, Jun 11, 2013 at 09:46:50AM +0100, Chris Wilson wrote:
> On Mon, 10 Jun 2013 19:00:04 +0000, "Bryce W. Harrington" <b.harrington at samsung.com> wrote:
> > Compiler warns about ax and bx possibly being used uninitialized. The
> > code logic as currently written doesn't permit this, so initializing the
> > variables is just to stifle warnings in six places.
>
> Not keen on this one (and I never did finish my task to re-unify
> bentley-ottmann). This is an instance the compiler is expected to get
> right.
Yes, looks like this was investigated for a GSOC project, and may be
fixed in a newer version of the compiler.
http://stackoverflow.com/questions/14132898/gcc-wuninitialized-wmaybe-uninitialized-issues
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
Bryce
More information about the cairo
mailing list