<div class="gmail_quote">On Wed, May 30, 2012 at 12:40 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, 29 May 2012, Barry Smith wrote:<br>
<br>
><br>
> I have changed PetscBagRegisterEnum() to now properly copy the list of enum strings values<br>
><br>
<br>
</div>/home/balay/spetsc/src/sys/bag/bag.c: In function ‘PetscBagRegisterEnum’:<br>
/home/balay/spetsc/src/sys/bag/bag.c:79:3: warning: passing argument 2 of ‘PetscStrArrayallocpy’ from incompatible pointer type [enabled by default]<br>
/home/balay/spetsc/include/petscsys.h:1156:29: note: expected ‘char ***’ but argument is of type ‘const char ***’<br>
/home/balay/spetsc/src/sys/bag/bag.c: In function ‘PetscBagDestroy’:<br>
/home/balay/spetsc/src/sys/bag/bag.c:473:7: warning: passing argument 1 of ‘PetscStrArrayDestroy’ from incompatible pointer type [enabled by default]<br>
/home/balay/spetsc/include/petscsys.h:1157:29: note: expected ‘char **’ but argument is of type ‘const char **’<br>
<br>
if anyone has a better fix - do correct the following.<br>
<a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/c62350f780f9" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/c62350f780f9</a></blockquote><div><br></div><div>I prefer to be honest about const.</div><div>
<br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/44a418def4d0">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/44a418def4d0</a></div></div>