ken wrote:
I am getting this error from a gcc compile and I was wondering whether
this was 100% valid. This seems a little extreme to me
read the error message again.
casting between pointer-to-function and pointer-to-object
What good is it to cast a pointer-to-object to a pointer-to-function?
The later points at executable code, while the first points at data.
So why on earth would one want to cast one into another except for
beeing able to get at the opcodes of a function which, unless you are
writting a disassembler or a debugger, is a rather unusual
thing to do. You don't seem to be doing this, so the error message
points more in the direction of: "Hey buddy, there seems to be something
wrong with your pointer types. Check them!"
--
Karl Heinz Buchegger
kb******@gascad .at