summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_refcnt.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2009-12-08 19:13:48 +0100
committerRoland Scheidegger <[email protected]>2009-12-08 19:17:08 +0100
commitee1720b99dfb5964962f2346406a4e3e88374a68 (patch)
treecb07d1ad5ea1a76b262d15c4a47fff97290242cd /src/gallium/include/pipe/p_refcnt.h
parent72362a5cd41d97b770980c28fe6719c556f12ab7 (diff)
gallium: fix more potential strict aliasing issues
In particular, gcc man page warns that union a_union { int i; double d; }; int f() { double d = 3.0; return ((union a_union *) &d)->i; } "might" not be ok (why not?), even though it doesn't seem to generate any warnings. Hence don't use this and do the extra step to actually use assignment to get the values in/out of the union. This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
Diffstat (limited to 'src/gallium/include/pipe/p_refcnt.h')
0 files changed, 0 insertions, 0 deletions