This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Pointer of type `void *' used in arithmetic -- Warning becomes Error
- From: BoonWooi <woooinred at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 11 Oct 2005 02:10:02 -0700 (PDT)
- Subject: Pointer of type `void *' used in arithmetic -- Warning becomes Error
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/