221V 1 год назад
Родитель
Сommit
53a106d9b8
6 измененных файлов с 8 добавлено и 8 удалено
  1. 3 3
      src/mad.erl
  2. 1 1
      src/mad_release.erl
  3. 1 1
      src/mad_resolve.erl
  4. 1 1
      src/mad_static.erl
  5. 1 1
      src/mad_utils.erl
  6. 1 1
      src/profile/mad_vz.erl

+ 3 - 3
src/mad.erl

@@ -1,7 +1,7 @@
 -module(mad).
 -copyright('Maxim Sokhatsky').
 -include("mad.hrl").
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 -export([main/1]).
 
 main([])          -> help();
@@ -17,7 +17,7 @@ main(Params)      ->
            lists:flatten(
            lists:foldl(
                  fun ({Fun,Arg},[])  -> errors((profile()):Fun(Arg));
-                     ({Fun,Arg},Err) -> errors(Invalid),
+                     ({_Fun,_Arg},Err) -> errors(Invalid),
                                         { return, Err } end,
                  [], Valid)))).
 
@@ -56,7 +56,7 @@ info(Format)      -> io:format(lists:concat([Format,"\r"])).
 info(Format,Args) -> io:format(lists:concat([Format,"\r"]),Args).
 
 help(Reason,D)    -> help(io_lib:format("~s ~p", [Reason, D])).
-help(Msg)         -> help().
+help(_Msg)         -> help().
 help()            -> info("MAD Container Tool version ~s~n",[?VERSION]),
                      info("~n"),
                      info("    invoke = mad params~n"),

+ 1 - 1
src/mad_release.erl

@@ -1,5 +1,5 @@
 -module(mad_release).
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 
 release([])              -> release(["script"]);
 release(["depot"])       -> release(["depot", "sample"]);

+ 1 - 1
src/mad_resolve.erl

@@ -1,6 +1,6 @@
 -module(mad_resolve).
 -author('Maxim Sokhatsky').
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 
 % dependency graph solver
 

+ 1 - 1
src/mad_static.erl

@@ -1,6 +1,6 @@
 -module(mad_static).
 -copyright('Yuri Artemev').
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 -define(NODE(Bin), "node_modules/.bin/"++Bin).
 
 main(Config, ["watch"]) ->

+ 1 - 1
src/mad_utils.erl

@@ -1,6 +1,6 @@
 -module(mad_utils).
 -copyright('Sina Samavati').
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 
 %% internal
 name_and_repo({Name, _, Repo}) when is_list(Name) -> {Name, Repo};

+ 1 - 1
src/profile/mad_vz.erl

@@ -8,7 +8,7 @@ start(Params)     -> mad_vz:start(Params).
 attach(Params)    -> mad_vz:attach(Params).
 stop(Params)      -> mad_vz:stop(Params).
 release(Params)   -> mad_release:release(Params).
-sh(Params)        -> {error,'N/A'}.
+sh(_Params)        -> {error,'N/A'}.
 deps(Params)      -> mad_synrc:deps(Params).
 up(Params)        -> mad_synrc:up(Params).
 fetch(Params)     -> mad_synrc:fetch(Params).