Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 54214 invoked from network); 9 Feb 2008 16:22:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2008 16:22:24 -0000 Received: (qmail 86239 invoked by uid 500); 9 Feb 2008 16:22:17 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 86220 invoked by uid 500); 9 Feb 2008 16:22:17 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 86209 invoked by uid 99); 9 Feb 2008 16:22:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2008 08:22:17 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.3.85] (HELO wbm4.pair.net) (209.68.3.85) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2008 16:21:33 +0000 Received: by wbm4.pair.net (Postfix, from userid 65534) id 2357AA95E; Sat, 9 Feb 2008 11:21:52 -0500 (EST) Received: from 124.43.195.217 ([124.43.195.217]) (SquirrelMail authenticated user senaka@wso2.com) by webmail4.pair.com with HTTP; Sat, 9 Feb 2008 11:21:52 -0500 (EST) Message-ID: <1568.124.43.195.217.1202574112.squirrel@webmail4.pair.com> In-Reply-To: <12112033.1202573647774.JavaMail.jira@brutus> References: <8940231.1175084432436.JavaMail.jira@brutus> <12112033.1202573647774.JavaMail.jira@brutus> Date: Sat, 9 Feb 2008 11:21:52 -0500 (EST) Subject: [Axis2/C 1.3.0] fixing warnings on windows From: "Senaka Fernando" To: "Apache AXIS C Developers List" Reply-To: senaka@wso2.com User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Hi devs, Please take a look at this issue AXIS2C-573, [1], and provide your feedback. We are looking forward to fix this for 1.3.0 and forever get rid of this warning scenario on windows, and therefore, I expect your fullest support. [1] https://issues.apache.org/jira/browse/AXIS2C-573 Thanks, Senaka > > Senaka Fernando updated AXIS2C-573: > ----------------------------------- > > Attachment: warnings.rtf > warnings.txt > warnings.xls > > I have attached the list of remaining warnings (TXT, XLS, and RTF) when I > build with /W4, which is apparently the highest. Below is an evaluation. > > 1. I have specifically disabled C4100, which can't be avoided due to our > coding convention. This is due to un-used formal parameters. > > 2. Also, there are a great deal of warnings because we use > AXIS2_HASH_KEY_STRING (-1). The reason being we pass this constant to > axis2_ssize_t which is an unsigned int. It is possible to specify cast > this to unsigned int. But the better approach is to use (~0), which is the > popular choice when it comes to unsigned int failure returns. > > 3. Even in some other places we return (-1) especially in string.c, where > the return type is unsigned int. > > 4. Another issue is casting of function pointers, either using explicit > casts or implicitly. These should not be explicitly casted I guess, at > least because it generates two warnings. And, we can also disable C4152 > (implicit casting generates this). I don't see this as a problem. > > 5. Some others are due to use of old style declarators, deprecated > function names etc. These can be corrected. > > 6. We do have some unreachable code (2-3 places). Better have a good look > on these > > 7. Also, some C++ related stuff which can be ignored (actually I didn't > build on the C mode). > > 8. However, warnings 74 - 78 need some thorough inspection. > > Therefore, I believe that if we could fix Nos. 2, 3, 4, 6, and 8, we can > close this JIRA. The remaining Nos. are not so important. > >> Fix warnings on windows >> ------------------------ >> >> Key: AXIS2C-573 >> URL: https://issues.apache.org/jira/browse/AXIS2C-573 >> Project: Axis2-C >> Issue Type: Bug >> Components: build system (Windows) >> Environment: Windows >> Reporter: Nandika Jayawardana >> Assignee: Senaka Fernando >> Fix For: 1.3.0 >> >> Attachments: warnings.rtf, warnings.txt, warnings.xls >> >> >> When building axis2c source on windows, there are large number of >> warnings. These warnings should be fixed > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-dev-help@ws.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org