Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 17456 invoked from network); 17 Oct 2007 05:33:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 05:33:51 -0000 Received: (qmail 92041 invoked by uid 500); 17 Oct 2007 05:33:38 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 92012 invoked by uid 500); 17 Oct 2007 05:33:38 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 92003 invoked by uid 99); 17 Oct 2007 05:33:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 22:33:38 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 195.212.29.135 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [195.212.29.135] (HELO mtagate2.uk.ibm.com) (195.212.29.135) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 05:33:40 +0000 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.8/8.13.8) with ESMTP id l9H5WIXA270596 for ; Wed, 17 Oct 2007 05:32:18 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9H5WH692695338 for ; Wed, 17 Oct 2007 06:32:17 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9H5W1JC031101 for ; Wed, 17 Oct 2007 06:32:01 +0100 Received: from anaheim.local (sig-9-145-65-93.uk.ibm.com [9.145.65.93]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9H5W1WT030839 for ; Wed, 17 Oct 2007 06:32:01 +0100 Message-Id: <200710170532.l9H5W1WT030839@d06av01.portsmouth.uk.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-10) with nmh-1.1 In-reply-to: References: <20071016143953.17E8E1A983A@eris.apache.org> Comments: In-reply-to "Alexei Fedotov" message dated "Wed, 17 Oct 2007 01:42:09 +0400." From: Mark Hindess To: dev@harmony.apache.org Subject: Re: svn commit: r585156 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Oct 2007 06:31:52 +0100 X-Virus-Checked: Checked by ClamAV on apache.org Alexei, I've reverted the patch in r585384. However, please can you try changing the problem line to: portLib->mem_free_memory (portLib, (void*)pathSet); since I think that should also fix it - and still remove the warning (not treated as an error [yet]) on gcc 4.2. -Mark. On 17 October 2007 at 1:42, "Alexei Fedotov" wrote: > Hello Mark, > > It seems that this commit produce the following error in my > environment (Windows): > > [java] [exec] ..\shared\hyport.c(620) : error C2220: warning > treated as error - no object file generated > [java] [exec] ..\shared\hyport.c(620) : warning C4090: > 'function' : different 'const' qualifiers > > for the line: > portLib->mem_free_memory (portLib, pathSet); > > I believe the easiest way to fix this is to revert the patch. > Thanks! > > > > On 10/16/07, hindessm@apache.org wrote: > > Author: hindessm > > Date: Tue Oct 16 07:39:44 2007 > > New Revision: 585156 > > > > URL: http://svn.apache.org/viewvc?rev=585156&view=rev > > Log: > > Fix compiler warning. > > > > Modified: > > harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/sh > ared/hyport.c > > > > Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/p > ort/shared/hyport.c > > URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/p > ortlib/src/main/native/port/shared/hyport.c?rev=585156&r1=585155&r2=585156&vi > ew=diff > > =========================================================================== > === > > --- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/sh > ared/hyport.c (original) > > +++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/sh > ared/hyport.c Tue Oct 16 07:39:44 2007 > > @@ -590,7 +590,8 @@ > > { > > char *endPathPtr = NULL; > > char *launcherName = NULL; > > - char **pathSet = portLib->mem_allocate_memory (portLib, sizeof(char*)*2) > ; > > + const char **pathSet = > > + portLib->mem_allocate_memory (portLib, sizeof(char*)*2); > > char *vmPath = NULL; > > > > hysysinfo_get_executable_name (portLib, NULL, &launcherName); > > > > > > > > > -- > With best regards, > Alexei, > ESSD, Intel >