fix warnings from upcoming PETSc version