IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#456 closed defect (fixed)

pslib won't build with --enable-optimize

Reported by: jhoblitt Owned by: robert.desonia@…
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 robert.desonia@…, 21 years ago

Status: newassigned

comment:2 by David.Robbins@…, 21 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:4 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.