I wrote a function to read in the runtime parameters my program takes. This function is in a different file than my main program; the two object files are linked after compilation.
When I compile the file that contains the function I use to read in parameters, I get the following warning:
io.c(43): warning #120: return value type does not match the function type CHKERRQ(ierr); ^
This only seems to affect the
CHEKRRQ() macro, and I don't get this warning when I compile the examples included with PETSc. The only obvious difference is that the example is entirely within one file whereas my program is broken up into multiple files.
Does PETSc support separate compilation, or does some aspect of the
CHKERRQ() macro cause problems?