Pointer of type `void *' used in arithmetic -- Warning becomes Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux