[petsc-users] Warning in PCCompositeAddPC
Jed Brown
jedbrown at mcs.anl.gov
Tue May 29 07:41:06 CDT 2012
On Tue, May 29, 2012 at 7:22 AM, Hui Zhang <mike.hui.zhang at hotmail.com>wrote:
> Hi,
>
> I also have these warnings although I'm using latest petsc-dev.
>
>
Thanks, fixed here.
http://petsc.cs.iit.edu/petsc/petsc-dev/rev/df7df246f8d3
>
> You can ignore these warnings about 'const' for char *. I believe this is
> fixed in petsc-dev.
>
> Matt
>
>
> >* Hi PETSc experts,*>**>* When I used the following functions:*>**>* ierr = PCCompositeAddPC(finepc,PCSHELL);CHKERRQ(ierr);*>* ierr = PCCompositeAddPC(finepc,PCASM);CHKERRQ(ierr);*
>
> >* 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 *>* *>* *
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120529/ae93cc93/attachment.html>
More information about the petsc-users
mailing list