From 091a22dda4448dfbc03f9727bd066e19071b59ba Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Fri, 25 Nov 2011 20:37:42 +0100 Subject: [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 --- lib/snmp/doc/src/notes.xml | 23 +++++++++++++++++++++++ lib/snmp/src/compile/snmpc.src | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/snmp/doc/src/notes.xml b/lib/snmp/doc/src/notes.xml index 9e685174b7..022c0c81a9 100644 --- a/lib/snmp/doc/src/notes.xml +++ b/lib/snmp/doc/src/notes.xml @@ -74,13 +74,36 @@

Own Id: OTP-9747

+ +

[compiler] Fix the --warnings/--W option parsing in the + snmpc + wrapper (e)script. + The short warning option was incorrectly --w, instead + of as documented --W. This has now been corrected.

+

*** POTENTIAL INCOMPATIBILITY ***

+

Tuncer Ayaz

+

Own Id: OTP-9718

+
+
Incompatibilities + + + + +

[compiler] The short warning option has been changed from + --w to --W to comply with the documentation.

+

Tuncer Ayaz

+

Own Id: OTP-9718

+
+ +
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src index 7edd2111a5..9d1af42764 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 @@ -237,7 +237,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}); -- cgit v1.2.3