On Wed, Apr 27, 2011 at 18:41, Xiangdong Liang <xdliang at gmail.com> wrote:
> Thanks a lot, Jed. I am using Petsc's built-in function, VecCreate and > MatCreate. they are supposed to return PetscErrorCode. However, I still get > "warning: return makes pointer from integer without a cast" for these > built-in functions. There is a "return" inside the CHKERRQ macro. You either need to make *your* function return PetscErrorCode or use a different checking macro (e.g. CHKERRABORT). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110427/742187be/attachment.htm>
