Warning Compiler Flags (v0.2.1)

Flags that suppress warning diagnostics.

Latest

Overview

These flags change which warnings are shown or suppressed during compilation.

Reference source: thrustc/thrustc_cli/src/help.rs

Back to command line reference

--disable-warnings

Disable selected warning codes.

Accepts value: yes

Value syntax: W0001;W0005;W0010

Details

Use this when a known warning is intentionally triggered and you want to silence it locally for the current build.

Examples

thrustc main.thrust --disable-warnings W0001;W0005

Notes

--disable-all-warnings

Disable all general and specific warnings.

Accepts value: no

Details

This suppresses warning diagnostics broadly and should be used carefully.

Examples

thrustc main.thrust --disable-all-warnings

Notes

No extra notes for this flag.