#456 closed defect (fixed)
pslib won't build with --enable-optimize
| Reported by: | jhoblitt | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | build | Version: | 0.6.0 |
| Severity: | normal | Keywords: | |
| Cc: | rhl@… |
Description
The warning is generated by many of the calls to psFree().
warning: dereferencing type-punned pointer will break strict-aliasing rules
The warning is caused by '-fstrict-aliasing' which is enabled under -O2. It is
supposedly only triggered by unions being cast then deferenced but the warning
is also trigged when freeing a psMetadata (not psMetadataItem) which does not
contant a union. I'm not sure why we haven't seen this error before but it
appears to be a C99ism. Anyways, please have configure add
'-fno-strict-aliasing' to CFLAGS by default.
Change History (4)
comment:1 by , 21 years ago
| Status: | new → assigned |
|---|
comment:2 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 20 years ago
| Keywords: | VERIFIED added |
|---|
Note:
See TracTickets
for help on using tickets.

Bug has been resolved.... closing.