| 1 |
Explanation of why need to disable strict aliasing |
| 2 |
- from http://sourceforge.net/mailarchive/forum.php?thread_name=20120120131932.87c8472c.frank.peters%40comcast.net&forum_name=geomview-users |
| 3 |
|
| 4 |
Hello, |
| 5 |
i did some experiments with compiling, there are many such warnings |
| 6 |
|
| 7 |
In file included from ../../../../include/transform3.h:147:0, |
| 8 |
from ../../../../include/point3.h:78, |
| 9 |
from cmodelP.h:24, |
| 10 |
from cm_geometry.c:34: |
| 11 |
../../../../include/hpoint3.h: In function 'HPt3TransPt3': |
| 12 |
|
| 13 |
i think this is the culprit; |
| 14 |
*pout = *(Point3 *)(void *)&tp; |
| 15 |
|
| 16 |
long story short adding -fno-strict-aliasing to cflags allows optimization |
| 17 |
to work, it clears the window now :) |
| 18 |
|