On 31 Mar 2005 at 12:52, Frank Heckenbach wrote:
Prof A Olowofoyeku (The African Chief) wrote:
How does one get rid of the "dereferencing untyped pointer" error without endless typecasting?
Use typed pointers. :-) (This it to say, we need more background information about what you're doing to give useful advice.)
What I am trying to do is quite involved (part of a class library), and I need to use untyped pointers at the lower levels. I can always typecast, but would prefer not to.
Is there a switch or compiler directive?
Currently only `--borland-pascal' and `--delphi' disable it (which we don't usually recommend to use, as you know).
Yes. I would prefer not to use either of these. But it would also be nice to be able to disable this error with a switch/directive of its own. I had assumed that {$X+} would disable this error (since anyone relying on that switch is already swimming in dangerous waters), but it seems not. A warning is quite fine if it is thought too dangerous to permit easy disabling (for those who treat all warnings as errors, the effect would be the same).
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/