1 #include <petsc/private/petscimpl.h> 2 testDisabled(PetscRandom r)3PetscErrorCode testDisabled(PetscRandom r) 4 { 5 /* incorrect */ 6 PetscValidHeaderSpecific(r, PETSC_RANDOM_CLASSID, 2); 7 8 /* correct by being disabled */ 9 PetscDisableStaticAnalyzerForExpressionUnderstandingThatThisIsDangerousAndBugprone(PetscValidHeaderSpecific(r, PETSC_RANDOM_CLASSID, 2)); 10 return 0; 11 } 12