parquet_emit_warning Subroutine

public subroutine parquet_emit_warning(text)

Emits one warning about the data or the schema. Suppressed only at "errors_only".

This is the single place a Fortran-side warning is printed, which is what makes both output settings apply everywhere without each call site testing them -- see tools/check_source_conventions.py's no direct printing check, which is what keeps that true. It supplies the "WARNING: " prefix, so twelve call sites no longer repeat it and it cannot drift between them.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text

the message, without the "WARNING: " prefix.


Source Code

    subroutine parquet_emit_warning(text)
        character(len=*), intent(in) :: text !! the message, without the "WARNING: " prefix.

        if (cfg_verbosity >= verb_errors_only) return
        write (message_unit(), '(a)') "WARNING: " // text
    end subroutine parquet_emit_warning