Skip to content

Instantly share code, notes, and snippets.

@gusenov
Created June 22, 2019 09:45
Show Gist options
  • Save gusenov/cac9ad5a6e4499a037d074a1dd092503 to your computer and use it in GitHub Desktop.
Save gusenov/cac9ad5a6e4499a037d074a1dd092503 to your computer and use it in GitHub Desktop.
"Шумоподавляющие" флаги компилятора Clang.

-w, --no-warnings

Suppress all warnings

-W, --extra-warnings, --warn-, --warn-= Enable the specified warning
-Wdeprecated, -Wno-deprecated Enable warnings for deprecated constructs and define __DEPRECATED

Synonym for -Wextra.

Some of the diagnostics controlled by this flag are enabled by default.

Controls

Some of the diagnostics controlled by this flag are enabled by default.

Also controls

Diagnostic text:

warning: call to function without interrupt attribute could clobber interruptee’s VFP registers

-Werror Turn warnings into errors.
-Werror=foo Turn warning “foo” into an error.
-Wno-error=foo Turn warning “foo” into a warning even if -Werror is specified.
-Wfoo Enable warning “foo”. See the diagnostics reference for a complete list of the warning flags that can be specified in this way.
-Wno-foo Disable warning “foo”.
-w Disable all diagnostics.
-Weverything Enable all diagnostics.
/Wall Enable -Weverything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment