Nidish <nb25 at rice.edu> writes: > Urgh I must've been blind - flycheck was throwing warnings only if I > didn't cast elstiff[][] into const PetscScalar* . You don't have to cast there either, just pass &elstiff[0][0], for example.