2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

parser: allow specifying --warn=no-XXX to turn off warnings

Some warning flags are enabled by default, allow a warning to
be disbaled by specifying no- infront of the warning.

  Eg.
    --warn=no-deprecated

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2020-08-31 22:28:13 -07:00
parent 343024b4a3
commit 3d54324db0
2 changed files with 19 additions and 15 deletions

View File

@@ -301,6 +301,10 @@ multiple times.
apparmor_parser --warn=rules-not-enforced ...
A specific warning can be disabled by prepending I<no>- to the flag
apparmor_parser --warn=no-rules-not-enforced ...
Use --help=warn to see a full list of which warn flags are supported.
=item --Werror[=n]