[petsc-users] Warning in PCCompositeAddPC

Matthew Knepley knepley at gmail.com
Thu Mar 10 17:11:57 CST 2011


On Thu, Mar 10, 2011 at 5:06 PM, Rongliang Chen <rongliang.chan at gmail.com>wrote:

> Hi PETSc experts,
>
> When I used the following functions:
>
> ierr = PCCompositeAddPC(finepc,PCSHELL);CHKERRQ(ierr);
> ierr = PCCompositeAddPC(finepc,PCASM);CHKERRQ(ierr);
>

You can ignore these warnings about 'const' for char *. I believe this is
fixed in petsc-dev.

   Matt


> I got the following warning:
>
> joab.c:340: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
> qualifiers from pointer target type
> joab.c:341: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
> qualifiers from pointer target type
>
> Can you tell me how to fix it?  Thank you.
>
> Best,
>
> Rongliang
>
> UCB
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110310/c35b1760/attachment.htm>


More information about the petsc-users mailing list