Opened 16 years ago
Last modified 16 years ago
#1378 reopened defect
Type confusion and strict aliasing in gtfringetable — at Initial Version
| Reported by: | Michael Wood-Vasey | Owned by: | eugene |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Ohana | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Paul says
"""
off_t is probably defined as "long int" instead of "long long int", in which case the cast is inappropriate.
The quickest workaround would be to turn of -Werr in the Makefile.
"""
but this looks general so should be fixed.
Joel reported to this to the ps-ipp-dev list last week.
"""
/home/giga/temp/PS1/src/ipp/Ohana/src/misc/src/gtfringetable.c: In function ‘main’:
/home/giga/temp/PS1/src/ipp/Ohana/src/misc/src/gtfringetable.c:38: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/giga/temp/PS1/src/ipp/Ohana/src/misc/src/gtfringetable.c:39: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/giga/temp/PS1/src/ipp/Ohana/src/misc/src/gtfringetable.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/giga/temp/PS1/src/ipp/Ohana/src/misc/src/gtfringetable.c:41: warning: dereferencing type-punned pointer will break strict-aliasing rules
"""
