1 #include <petsc/private/petscimpl.h> 2 3 void 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 } 11