exmpp

Code pulled with git from git://git.process-one.net/exmpp/mainline.git with the last commit being 7512147

These are Current warnings for exmpp.

dialyzer -n -q -Wno_improper_lists ebin
exmpp_client_pubsub.erl:790: Function retract/3 has no local return
exmpp_client_pubsub.erl:801: Function retract/4 has no local return
exmpp_client_pubsub.erl:802: The call exmpp_xml:set_attribute({'xmlel', 'http://jabber.org/protocol/pubsub', [], 'item', [], []},{<<_:16>>,_}) will never return since the success typing is (#xmlelement{name::atom() | string(),attrs::[{atom() | [any()],[any()]}],children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlelement{name::atom() | [any()],attrs::[any()],children::'undefined' | [any()]}]} | #xmlel{ns::atom() | string(),declared_ns::[{atom() | [any()],'none' | [any()]}],name::atom() | string(),attrs::[#xmlattr{ns::atom() | [any()],name::'undefined' | binary(),value::'undefined' | binary()}],children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlel{ns::atom() | [any()],declared_ns::[any()],name::atom() | [any()],attrs::[any()],children::'undefined' | [any()]}]},#xmlattr{ns::atom() | string(),name::'undefined' | binary(),value::'undefined' | binary()}) -> #xmlelement{name::atom() | string(),attrs::[{atom() | [any()],[any()]},...],children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlelement{name::atom() | [any()],attrs::[any()],children::'undefined' | [any()]}]} | #xmlel{ns::atom() | string(),declared_ns::[{atom() | [any()],'none' | [any()]}],name::atom() | string(),attrs::[#xmlattr{ns::atom() | [any()],name::'undefined' | binary(),value::'undefined' | binary()},...],children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlel{ns::atom() | [any()],declared_ns::[any()],name::atom() | [any()],attrs::[any()],children::'undefined' | [any()]}]} and the contract is (xmlel(),xmlattr() | xmlattr_old()) -> xmlel()
    ; (xmlel_old(),xmlattr() | xmlattr_old()) -> xmlel_old()
exmpp_caps.erl:162: The variable _ can never match since previous clauses completely covered the type [#field{var::[any()],values::[any()]}] | #field{var::string(),values::[binary() | [any()]]}
exmpp_caps.erl:222: The variable _ can never match since previous clauses completely covered the type string()
exmpp_jid.erl:315: The pattern [Bare_Jid] can never match since previous clauses completely covered the type [binary(),...]
exmpp_tls.erl:291: Function connect/4 has no local return
exmpp_tls.erl:311: Function accept/4 has no local return
exmpp_tls.erl:314: Function handshake/5 has no local return
exmpp_tls.erl:318: Function handshake/6 has no local return
exmpp_tls.erl:326: The pattern {'ok', [{'active', Active}]} can never match the type [any()] | {'error',_}
exmpp_tls.erl:385: Function handshake2/4 will never be called
exmpp_tls.erl:462: The pattern {'ok', Cert} can never match the type {'Certificate',_,_,_} | {'OTPCertificate',_,_,_}
exmpp_tls.erl:465: The pattern {'error', Reason} can never match the type {'Certificate',_,_,_} | {'OTPCertificate',_,_,_}
exmpp_tls.erl:610: Function get_engine_from_args/3 will never be called
exmpp_tls.erl:636: Function get_engine_from_options/1 will never be called
exmpp_tls.erl:639: Function get_engine_from_identity/1 will never be called
exmpp_tls.erl:644: Function get_engine_from_verification/1 will never be called
exmpp_tls.erl:901: Function engine_set_mode/2 will never be called
exmpp_tls.erl:913: Function engine_set_identity/2 will never be called
exmpp_tls.erl:923: Function engine_set_peer_verification/2 will never be called
exmpp_tls.erl:931: Function engine_set_trusted_certs/2 will never be called
exmpp_tls.erl:942: Function engine_set_options/3 will never be called
exmpp_tls.erl:951: Function engine_prepare_handshake/1 will never be called
exmpp_tls.erl:959: Function engine_handshake/1 will never be called
exmpp_dns.erl:43: Record construction #hostent{h_name::nonempty_maybe_improper_list(),h_aliases::[],h_addrtype::'srv',h_length::1,h_addr_list::[{0,0,_,_},...]} violates the declared type of field h_name::atom() | string() and h_addrtype::'inet' | 'inet6' | 'undefined' and h_addr_list::[{byte(),byte(),byte(),byte()} | {char(),char(),char(),char(),char(),char(),char(),char()}]
exmpp_dns.erl:78: The pattern E = {'error', _} can never match the type {'ok',#hostent{h_name::atom() | [any()],h_aliases::[any()],h_addrtype::'inet' | 'inet6' | 'undefined',h_length::non_neg_integer(),h_addr_list::[any(),...]}}
exmpp_dns.erl:82: The pattern [] can never match the type [{byte(),byte(),byte(),byte()} | {char(),char(),char(),char(),char(),char(),char(),char()},...]
exmpp_dns.erl:160: The pattern {'error', _} can never match the type [{byte(),byte(),byte(),byte()} | {char(),char(),char(),char(),char(),char(),char(),char()},...]
exmpp_dns.erl:172: The pattern [] can never match the type [{byte(),byte(),byte(),byte()} | {char(),char(),char(),char(),char(),char(),char(),char()},...]
exmpp_session.erl:292: Call to missing or unexported function lists:ketytake/3
exmpp_server_sasl.erl:186: Record construction #xmlel{ns::'urn:ietf:params:xml:ns:xmpp-sasl',declared_ns::[],name::'text',attrs::[],children::#xmlcdata{cdata::binary()}} violates the declared type of field children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlel{ns::atom() | string(),declared_ns::[{atom() | string(),'none' | string()}],name::atom() | string(),attrs::[#xmlattr{ns::atom() | string(),name::'undefined' | binary(),value::'undefined' | binary()}],children::'undefined' | [#xmlcdata{cdata::binary()} | #xmlel{ns::atom() | string(),declared_ns::[{atom() | string(),'none' | string()}],name::atom() | string(),attrs::[#xmlattr{ns::atom() | string(),name::'undefined' | binary(),value::'undefined' | binary()}],children::'undefined' | [any()]}]}]