This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]