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