dereferencing type punned pointer will break strict-aliasing rules
Asked by
Nayani P
Hi all,
Sorry to ask questions in a short span!!! I tried to compile a code distributed by an ARM Cortex-M3 manufacturing company. Though their sample codes are not for GCC, having come from a reputed company, I was sure they will compile without a hitch in GCC. But to my surprise I got the warning mentioned in summary. I understand pointers are used to access I/O ports or memory and I do not want to suppress the warnings lest I may run into a problem some time later. Any suggestions please? Thank for your time.
Partha
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Nayani P
- Solved:
- Last query:
- Last reply:
To post a message you must log in.