protected void pushIgnoreNullabilityPragmas ( ) { if ( getGenerationUnit ( ) . options ( ) . nullability ( ) || getGenerationUnit ( ) . hasNullabilityAnnotations ( ) ) { newline ( ) ; println ( "#if __has_feature(nullability)" ) ; println ( "#pragma clang diagnostic push" ) ; println ( "#pragma GCC diagnostic ignored \"-Wnullability\"" ) ; println ( "#pragma GCC diagnostic ignored \"-Wnullability-completeness\"" ) ; println ( "#endif" ) ; } }
Ignores nullability warnings . This method should be paired with popIgnoreNullabilityPragmas .