Permalink
Browse files

dialyzer maintenance

Fix known dialyzer warnings. Also change Makefile dialyzer rule to make it
easier to see pass/fail results.
  • Loading branch information...
1 parent 36a3600 commit 52e7b4c14d88fa970421f939c98543aa1bdd2812 @vinoski vinoski committed Apr 2, 2014
Showing with 4 additions and 2 deletions.
  1. +3 −1 Makefile
  2. +1 −1 known_dialyzer_warnings
View
@@ -90,7 +90,9 @@ yaws.plt:
dialyzer: yaws.plt
-dialyzer -q --plt yaws.plt -r ebin > dialyzer_warnings
- diff -U0 known_dialyzer_warnings dialyzer_warnings
+ @if diff -U0 known_dialyzer_warnings dialyzer_warnings ; then \
+ echo dialyzer check passed ; exit 0 ; \
+ else exit 1 ; fi
.PHONY: test
test: all
View
@@ -4,7 +4,7 @@ yaws.erl:2424: Guard test Ret::'file' == 'fd' can never succeed
yaws.erl:2432: Guard test Ret::'file' == 'binfd' can never succeed
yaws.erl:2677: The pattern 'false' can never match the type 'true'
yaws.erl:2686: The pattern 'false' can never match the type 'true'
-yaws_api.erl:2559: The pattern 'false' can never match the type 'true'
+yaws_api.erl:2589: The pattern 'false' can never match the type 'true'
yaws_config.erl:595: The pattern 'false' can never match the type 'true'
yaws_ctl.erl:532: Function hup/1 has no local return
yaws_ctl.erl:537: Function stop/1 has no local return

0 comments on commit 52e7b4c

Please sign in to comment.