<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hello,<div><br class="webkit-block-placeholder"></div><div>Dialyzer issues a warning when matching the result of os:version:</div><div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>    OSVersion = case os:version() of</div><div><span class="Apple-tab-span" style="white-space:pre">                       </span>    {Major, Minor, Release} -></div><div><span class="Apple-tab-span" style="white-space:pre">                          </span>lists:flatten(</div><div><span class="Apple-tab-span" style="white-space:pre">                               </span>  io_lib:format("~w.~w.~w",</div><div><span class="Apple-tab-span" style="white-space:pre">                                               </span>[Major, Minor, Release]));</div><div><span class="Apple-tab-span" style="white-space:pre">                   </span>    VersionString -></div><div><span class="Apple-tab-span" style="white-space:pre">                            </span>VersionString</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>end,</div><div><br class="webkit-block-placeholder"></div><div>Dialyzer says on this code:</div><div>The variable VersionString can never match since previous clauses completely covered the type {non_neg_integer(),non_neg_integer(),non_neg_integer()}</div><div><br class="webkit-block-placeholder"></div>However, the documentation of os.erl says:</div><div><p style="margin: 0.0px 0.0px 16.0px 0.0px"><font face="Courier" size="4" style="font: 13.0px Courier"><b>version() -> {Major, Minor, Release} | VersionString</b></font></p> </div><div>Dialyzer or the documentation has it wrong. This is on Erlang R11B-5.</div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>-- </div><div>Mickaël Rémond</div><div> <a href="http://www.process-one.net">http://www.process-one.net</a>/</div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>