* Pointer of type `void *' used in arithmetic -- Warning becomes Error
@ 2005-10-11 9:10 BoonWooi
0 siblings, 0 replies; only message in thread
From: BoonWooi @ 2005-10-11 9:10 UTC (permalink / raw)
To: gcc-help
I compiled my code using g++ 3.1 vs g++ 3.4.2. The 3.1
compilation issued this warning:
warning: ISO C++ forbids using pointer of type `void
*' in pointer arithmetic.
However in 3.4.2 compilation, the warning has become
error:
error: pointer of type `void *' used in arithmetic.
Is there any changes on this between the versions?
Should I turn off any option when I compile the code
with g++ 3.4.2 to get rid of the errors? Please help,
thanks!
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-11 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 9:10 Pointer of type `void *' used in arithmetic -- Warning becomes Error BoonWooi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).