diff options
author | Micael Karlberg <[email protected]> | 2011-11-16 16:50:33 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-11-16 16:50:33 +0100 |
commit | 86395c2392912e0e60788dd592031cc47c3f707a (patch) | |
tree | 9207d79109f890a3bcc01e0037552e41f41def24 /lib/snmp/src/compile | |
parent | 4f872459b0a5b5f15273456ec0266a07f52fc5ac (diff) | |
parent | 156b2ed537d26205fb152cea16347cd8b683e851 (diff) | |
download | otp-86395c2392912e0e60788dd592031cc47c3f707a.tar.gz otp-86395c2392912e0e60788dd592031cc47c3f707a.tar.bz2 otp-86395c2392912e0e60788dd592031cc47c3f707a.zip |
[compiler] Fix the --warnings/--W option parsing in the snmpc wrapper script.
The short warning option was incorrectly '--w', instead
of as documented '--W'. This has now been corrected.
Tuncer Ayaz
OTP-9718
Merge branch 'ta/snmpc-warnings-option' into bmk/snmp/compiler/fix_short_warning_option/OTP-9718
Diffstat (limited to 'lib/snmp/src/compile')
-rw-r--r-- | lib/snmp/src/compile/snmpc.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src index f993335b89..b528bdde95 100644 --- a/lib/snmp/src/compile/snmpc.src +++ b/lib/snmp/src/compile/snmpc.src @@ -74,7 +74,7 @@ %% --rrnac %% --version %% --verbosity V -%% --warnings +%% --warnings | --W %% --Werror | --wae | --warnings_as_errors main(Args) when is_list(Args) -> case (catch process_args(Args)) of @@ -234,7 +234,7 @@ process_args(["--verbosity", Verbosity0|Args], #state{verbosity = V} = State) process_args(["--verbosity"|_Args], #state{verbosity = V}) when (V =/= undefined) -> e(lists:flatten(io_lib:format("Verbosity already set to ~w", [V]))); -process_args(["--w"|Args], State) -> +process_args(["--W"|Args], State) -> process_args(Args, State#state{warnings = true}); process_args(["--warnings"|Args], State) -> process_args(Args, State#state{warnings = true}); |