From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 949 invoked by alias); 11 Oct 2005 09:10:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 942 invoked by uid 22791); 11 Oct 2005 09:10:05 -0000 Received: from web52504.mail.yahoo.com (HELO web52504.mail.yahoo.com) (206.190.48.187) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 11 Oct 2005 09:10:05 +0000 Received: (qmail 24592 invoked by uid 60001); 11 Oct 2005 09:10:03 -0000 Message-ID: <20051011091002.24590.qmail@web52504.mail.yahoo.com> Received: from [192.198.147.96] by web52504.mail.yahoo.com via HTTP; Tue, 11 Oct 2005 02:10:02 PDT Date: Tue, 11 Oct 2005 09:10:00 -0000 From: BoonWooi Subject: Pointer of type `void *' used in arithmetic -- Warning becomes Error To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00051.txt.bz2 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/