Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 27814 invoked from network); 26 Feb 2008 21:23:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 21:23:14 -0000 Received: (qmail 2593 invoked by uid 500); 26 Feb 2008 21:23:09 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 2311 invoked by uid 500); 26 Feb 2008 21:23:08 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 2300 invoked by uid 99); 26 Feb 2008 21:23:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 13:23:08 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of carl.lefrancois@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 21:22:35 +0000 Received: by ug-out-1314.google.com with SMTP id a2so25058ugf.13 for ; Tue, 26 Feb 2008 13:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=t2mzcJoXQL+SUx6iq/6aW0ngxb9Y+4lWVKhTbam3SEY=; b=sutC2i2ZfbEUIVHfg+JvWN3KNG/pIc1sPRoeCiOBnk4kK+Je012JaPxi/9Hrwf/nYYpU+6JjfRZdcsqARUUHrgu7+ahbJ76HlTm09xV0Xs4+mNE35Xw2hircD3k6tnNEeSxdOtpM6dBLFuKeQK6zA9cXG/FYHwnYWCpDWp36cTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=WlBd0WzAJsoAmTPE1Rv+G1TgYiFrVs9b7fYW5/+hiwV56ZSPtn7UfpQAWdLRvuxAg6kvZYacjPIGdUGYk9kVxbEHk3h8VhHaMhdpSt7kESc8P9pSd+IJHW+4puYZm4gUqcNdQl5FrR62YTkwBPgiaIT0X6srThMG/R+g7vm9ttI= Received: by 10.142.48.14 with SMTP id v14mr4309188wfv.14.1204060962191; Tue, 26 Feb 2008 13:22:42 -0800 (PST) Received: by 10.142.155.11 with HTTP; Tue, 26 Feb 2008 13:22:42 -0800 (PST) Message-ID: <5f77498f0802261322h56d7c227t61ff1cdd73efb756@mail.gmail.com> Date: Tue, 26 Feb 2008 16:22:42 -0500 From: "=?ISO-8859-1?Q?Carl_Lefran=E7ois?=" To: "Apache AXIS C User List" Subject: function parameter different from declaration parameter MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1521_22613482.1204060962199" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1521_22613482.1204060962199 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline when compiling the Axis2/C source I get many C4028 warnings "formal parameter x different from declaration" in the example below, the declared parameter is const int and the function declares it as int. declaration: (\include\axis2_callback.h) AXIS2_EXTERN axis2_status_t AXIS2_CALL axis2_callback_report_error( axis2_callback_t * callback, const axutil_env_t * env, const int exception); function: (\src\core\clientapi\callback.c) AXIS2_EXTERN axis2_status_t AXIS2_CALL axis2_callback_report_error( axis2_callback_t * callback, const axutil_env_t * env, int exception) { axis2_callback_set_error(callback, env, exception); return callback->on_error(callback, env, exception); } Is there a reason for this difference? I am asking before I try changing the declarations to see if they help me solve my debugging problem. Thanks in advance! ------=_Part_1521_22613482.1204060962199 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline when compiling the Axis2/C source I get many C4028 warnings "formal parameter x different from declaration"

in the example below, the declared parameter is const int and the function declares it as int.

declaration:  (\include\axis2_callback.h)
    AXIS2_EXTERN axis2_status_t AXIS2_CALL
    axis2_callback_report_error(
        axis2_callback_t * callback,
        const axutil_env_t * env,
        const int exception);

function:   (\src\core\clientapi\callback.c)
AXIS2_EXTERN axis2_status_t AXIS2_CALL
axis2_callback_report_error(
    axis2_callback_t * callback,
    const axutil_env_t * env,
    int exception)
{
    axis2_callback_set_error(callback, env, exception);
    return callback->on_error(callback, env, exception);
}


Is there a reason for this difference?  I am asking before I try changing the declarations to see if they help me solve my debugging problem.

Thanks in advance!
------=_Part_1521_22613482.1204060962199--