Fix strict-aliasing violations
authorVille Syrjala <syrjala@sci.fi>
Fri, 19 Aug 2011 02:17:21 +0000 (05:17 +0300)
committerVille Syrjala <syrjala@sci.fi>
Fri, 19 Aug 2011 02:27:12 +0000 (05:27 +0300)
commitfa73bf036216d55bf71e0df9393e0c981a80d502
treebdd0d170e441549c3a1ccaf77b448bbb8cc9ea5b
parentdb259a449b37726ca5a4fe7fd40fc591a5c7698f
Fix strict-aliasing violations

Use a union to tell the compiler that XEvent and XvPortNotifyEvent
are one and the same.

tvout-ctl.c:174: warning: dereferencing pointer 'notify' does break strict-aliasing rules
tvout-ctl.c:174: warning: dereferencing pointer 'notify' does break strict-aliasing rules
tvout-ctl.c:174: warning: dereferencing pointer 'notify' does break strict-aliasing rules
tvout-ctl.c:174: warning: dereferencing pointer 'notify' does break strict-aliasing rules
tvout-ctl.c:186: warning: dereferencing pointer 'notify' does break strict-aliasing rules
tvout-ctl.c:164: note: initialized from here
src/tvout-ctl.c