Skip to content

Cleanup warnings#42

Merged
seancribbs merged 6 commits intomasterfrom
sdc-cleanup-warnings
Mar 14, 2013
Merged

Cleanup warnings#42
seancribbs merged 6 commits intomasterfrom
sdc-cleanup-warnings

Conversation

@seancribbs
Copy link

  1. The warn_missing_spec flag is obnoxious, and overkill when we properly dialyze. Removed.
  2. Removed a bunch of miscellaneous warnings about unused variables, functions, and shadowed variables.
  3. Added dialyzer to the Makefile.
  4. Fixed several dialyzer warnings.

Sean Cribbs added 6 commits March 7, 2013 14:19
Fixed:
pokemon_pb.erl:52: The pattern <Default, _> can never match since previous clauses completely covered the type <_,'none'>
pokemon_pb.erl:53: The pattern <Val, _> can never match since previous clauses completely covered the type <_,'none'>
protobuffs.erl:373: Invalid type specification for function protobuffs:encode_field_tag/2. The success typing is (non_neg_integer(),0 | 1 | 2 | 5) -> [integer(),...]
protobuffs.erl:387: Invalid type specification for function protobuffs:encode_varint/1. The success typing is (integer()) -> [integer(),...]
protobuffs.erl:393: Invalid type specification for function protobuffs:encode_varint/2. The success typing is (integer(),[integer()]) -> [integer(),...]

Safe to ignore:
pokemon_pb.erl:46: The variable _ can never match since previous clauses completely covered the type #pikachu{}
@ghost ghost assigned seancribbs and russelldb Mar 13, 2013
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL!

@russelldb
Copy link
Contributor

Ran dialyzer on this (there are still warnings) and master (there are many more warnings). All the changes make sense and things work as expected. +1 from me

seancribbs pushed a commit that referenced this pull request Mar 14, 2013
@seancribbs seancribbs merged commit cbe7ee0 into master Mar 14, 2013
@seancribbs seancribbs deleted the sdc-cleanup-warnings branch March 14, 2013 18:55
@ghost ghost assigned seancribbs Mar 14, 2013
@d11wtq
Copy link

d11wtq commented Apr 10, 2013

I just installed riak-erlang-client (latest tag 1.3.1.1) and got a terminal screen sprayed full of warnings from (I assume) this :) Looking at the tags, the last release was 2 months ago. Is there any plan to release an update?

@seancribbs
Copy link
Author

@d11wtq Yes, there will be an update soon, probably around the time of the 1.4 release.

@d11wtq
Copy link

d11wtq commented Apr 11, 2013

Awesome, thanks.

@seancribbs seancribbs removed their assignment May 8, 2015
russelldb pushed a commit that referenced this pull request Apr 23, 2018
Remove need to have protoc available in Python source package. Closes #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants