Skip to content

pragma ignore_unused

IsaacShelton edited this page Mar 21, 2022 · 1 revision

pragma ignore_unused

pragma ignore_unused is a pragma directive that can be used to ignore unused variable warnings

pragma ignore_unused

See --ignore-unused in command-line usage for compiler argument

Other Methods

Specific unused variable warnings can be ignored by prefixing the unused variable with an underscore

_my_unused_variable int
Clone this wiki locally