<div class="gmail_quote">On Tue, May 29, 2012 at 7:22 AM, Hui Zhang <span dir="ltr"><<a href="mailto:mike.hui.zhang@hotmail.com" target="_blank">mike.hui.zhang@hotmail.com</a>></span> wrote:</div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-weight:normal;word-spacing:0px">
Hi, </pre><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-weight:normal;word-spacing:0px">I also have these warnings although I'm using latest petsc-dev. </pre>
</div></blockquote><div><br></div><div>Thanks, fixed here.</div><div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/df7df246f8d3">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/df7df246f8d3</a></div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-weight:normal;word-spacing:0px">
<br><blockquote type="cite"><span>You can ignore these warnings about 'const' for char *. I believe this is
fixed in petsc-dev.
Matt
</span><span style="font-family:SimSun;white-space:normal"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;font-weight:normal;word-spacing: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>><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></div></blockquote></div><br>