This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Assignment makes pointer from integer without a cast


>What do I have to do?!

Remove this undefined cast from your code!

You are assuming that you can take some arbitrary integer and treat
it as an address. As the bus error shows, this does not work on machines
that take alignment seriously!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]