Strict aliasing warning when compiling with glib-2.0 version2.30.2

Felipe Contreras felipe.contreras at gmail.com
Wed Apr 25 12:46:47 PDT 2012


On Wed, Apr 25, 2012 at 7:22 PM, Qais Yousef <Qais.Yousef at imgtec.com> wrote:

> No they aren't a problem. I just wanted to make sure the cause of the
> warnings is the mentioned reason. I have a fix (attached).

That's not a fix, that's just hiding the warnings.

I meant a patch in the code.

> Generally strict-aliasing warnings scare me. If things go wrong, they
> could produce subtle runtime errors. I've seen one case of this.

Yes, they _might_ cause problems, but usually that's not the case.

Without a patch that fixes the code, I think it's best to leave the warning.

Cheers.

-- 
Felipe Contreras


More information about the gstreamer-openmax mailing list