Re: [PATCH] Initialize ax and bx to quell warnings.
Bryce Harrington <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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" <[email protected]> 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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo