DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B8001: unknown pragma ignored

Catalog status: active. Default severity: warning. Stable name: unknown-pragma. Family: Warnings and assumptions.

Ada requires implementations to ignore pragmas they do not know, so this is a warning. Verada knows its proof pragmas (Assert, Assume, Loop_Invariant, Loop_Variant, Annotate, SPARK_Mode, ...) and reports the obsolescent ones that have aspect forms (B0902).

Example (Vada)

   pragma Optimize_Everything;

Example (Varc)

    @Optimize_Everything;

What to do

Remove the pragma or fix its name.

Regression source and further reading

Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.

See warnings and assumptions, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.