Commit 2b645818 authored by Heinz N. Gies's avatar Heinz N. Gies

Fix all dialyzer warnings

parent 84a4d5de
...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) -> ...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) ->
content_type([_ | R]) -> content_type([_ | R]) ->
content_type(R). content_type(R).
-dialyzer({no_opaque, handle/2}).
handle(Req, State) -> handle(Req, State) ->
Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req), Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req),
{ok, R, Req1} = cowboy_req:parse_header(<<"accept">>, Req0), {ok, R, Req1} = cowboy_req:parse_header(<<"accept">>, Req0),
......
...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) -> ...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) ->
content_type([_ | R]) -> content_type([_ | R]) ->
content_type(R). content_type(R).
-dialyzer({no_opaque, handle/2}).
handle(Req, State) -> handle(Req, State) ->
Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req), Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req),
case cowboy_req:qs_val(<<"q">>, Req0) of case cowboy_req:qs_val(<<"q">>, Req0) of
......
...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) -> ...@@ -25,6 +25,7 @@ content_type([{{<<"application">>,<<"x-msgpack">>,_},_,_} | _]) ->
content_type([_ | R]) -> content_type([_ | R]) ->
content_type(R). content_type(R).
-dialyzer({no_opaque, handle/2}).
handle(Req, State) -> handle(Req, State) ->
Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req), Req0 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req),
{ok, R, Req1} = cowboy_req:parse_header(<<"accept">>, Req0), {ok, R, Req1} = cowboy_req:parse_header(<<"accept">>, Req0),
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
{jsx, "1.4.5"}, {jsx, "1.4.5"},
{msgpack, ".*", {git, "https://github.com/msgpack/msgpack-erlang.git", {tag, "0.3.3"}}}, {msgpack, ".*", {git, "https://github.com/msgpack/msgpack-erlang.git", {tag, "0.3.3"}}},
mmath, mmath,
{dqe, ".*", {git, "https://github.com/dalmatinerdb/dqe.git", {tag, "0.1.16"}}}, {dqe, ".*", {git, "https://github.com/dalmatinerdb/dqe.git", {branch, "master"}}},
eper, eper,
recon recon
]}. ]}.
......
...@@ -4,21 +4,21 @@ ...@@ -4,21 +4,21 @@
{git,"https://github.com/tsloughter/cuttlefish.git", {git,"https://github.com/tsloughter/cuttlefish.git",
{ref,"f5f6fdc1b0dd8ebe909b81f0b38f5715d4e869e6"}}, {ref,"f5f6fdc1b0dd8ebe909b81f0b38f5715d4e869e6"}},
0}, 0},
{<<"ddb_client">>,{pkg,<<"ddb_client">>,<<"0.1.12">>},1}, {<<"ddb_client">>,{pkg,<<"ddb_client">>,<<"0.1.13">>},1},
{<<"dflow">>,{pkg,<<"dflow">>,<<"0.1.5">>},1}, {<<"dflow">>,{pkg,<<"dflow">>,<<"0.1.5">>},1},
{<<"dproto">>,{pkg,<<"dproto">>,<<"0.1.9">>},1}, {<<"dproto">>,{pkg,<<"dproto">>,<<"0.1.10">>},1},
{<<"dqe">>, {<<"dqe">>,
{git,"https://github.com/dalmatinerdb/dqe.git", {git,"https://github.com/dalmatinerdb/dqe.git",
{ref,"8b5e5bd45ba97ce879a0eee27b7ea3a39943ddb8"}}, {ref,"6e74b78e8b1cb9237237ec57be5ed5cd588810b5"}},
0}, 0},
{<<"eper">>,{pkg,<<"eper">>,<<"0.93.0">>},0}, {<<"eper">>,{pkg,<<"eper">>,<<"0.94.0">>},0},
{<<"erlang_localtime">>, {<<"erlang_localtime">>,
{git,"git://github.com/choptastic/erlang_localtime.git", {git,"git://github.com/choptastic/erlang_localtime.git",
{ref,"bd0083ffe6107537a555133c9b94656ca5c854f3"}}, {ref,"bd0083ffe6107537a555133c9b94656ca5c854f3"}},
2}, 2},
{<<"erlware_commons">>, {<<"erlware_commons">>,
{git,"git://github.com/erlware/erlware_commons.git", {git,"git://github.com/erlware/erlware_commons.git",
{ref,"26c600922ebdec33eb9ffd05492bd0d24f2c3e16"}}, {ref,"49bc69e35a282bde4a0a6a8f211b5f77d8585256"}},
2}, 2},
{<<"getopt">>, {<<"getopt">>,
{git,"git://github.com/jcomellas/getopt.git", {git,"git://github.com/jcomellas/getopt.git",
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.6">>},1}, {<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.6">>},1},
{<<"jsx">>,{pkg,<<"jsx">>,<<"1.4.5">>},0}, {<<"jsx">>,{pkg,<<"jsx">>,<<"1.4.5">>},0},
{<<"lager">>,{pkg,<<"lager">>,<<"2.1.1">>},0}, {<<"lager">>,{pkg,<<"lager">>,<<"2.1.1">>},0},
{<<"mmath">>,{pkg,<<"mmath">>,<<"0.1.11">>},0}, {<<"mmath">>,{pkg,<<"mmath">>,<<"0.1.13">>},0},
{<<"msgpack">>, {<<"msgpack">>,
{git,"https://github.com/msgpack/msgpack-erlang.git", {git,"https://github.com/msgpack/msgpack-erlang.git",
{ref,"c666a5f6568ac2e15687bb155442025dbb8b74ff"}}, {ref,"c666a5f6568ac2e15687bb155442025dbb8b74ff"}},
...@@ -42,4 +42,4 @@ ...@@ -42,4 +42,4 @@
{ref,"4135dfa8e36eb531b9fdbea8ccbce597231864fe"}}, {ref,"4135dfa8e36eb531b9fdbea8ccbce597231864fe"}},
1}, 1},
{<<"ranch">>,{pkg,<<"ranch">>,<<"1.1.0">>},0}, {<<"ranch">>,{pkg,<<"ranch">>,<<"1.1.0">>},0},
{<<"recon">>,{pkg,<<"recon">>,<<"2.2.0">>},0}]. {<<"recon">>,{pkg,<<"recon">>,<<"2.2.1">>},0}].
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment