<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><pre style="color: rgb(0, 0, 0); font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Hi, </pre><pre style="color: rgb(0, 0, 0); font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">I also have these warnings although I'm using latest petsc-dev. </pre><pre style="color: rgb(0, 0, 0); font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br><blockquote type="cite"><span class="Apple-style-span">You can ignore these warnings about 'const' for char *. I believe this is
fixed in petsc-dev.
Matt
</span><span class="Apple-style-span" style="font-family: SimSun; white-space: normal; "><pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">><i> Hi PETSc experts,
</i>><i>
</i>><i> When I used the following functions:
</i>><i>
</i>><i> ierr = PCCompositeAddPC(finepc,PCSHELL);CHKERRQ(ierr);
</i>><i> ierr = PCCompositeAddPC(finepc,PCASM);CHKERRQ(ierr);</i><br></pre></span><span class="Apple-style-span">><i style="font-style: normal; "> I got the following warning:
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; "> joab.c:340: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
</i>><i style="font-style: normal; "> qualifiers from pointer target type
</i>><i style="font-style: normal; "> joab.c:341: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
</i>><i style="font-style: normal; "> qualifiers from pointer target type
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; "> Can you tell me how to fix it? Thank you.
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; "> Best,
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; "> Rongliang
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; "> UCB
</i>><i style="font-style: normal; ">
</i>><i style="font-style: normal; ">
</i></span></blockquote></pre><div><br></div></body></html>