<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 5/18/2019 4:30 AM, J. Gareth Moreton
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:03f089b6-76b5-72c7-157f-6539aa6c33d8@moreton-family.com">Hi
      everyone,
      <br>
      <br>
      So it looks like this new warning has appeared as part of the data
      flow analysis of -O4.  The thing is, I personally have a problem
      with this being a warning, because there's nothing inherently
      wrong with not covering every case branch or omitting an else
      block (especially if one isn't needed).  Adding "else ;"
      everywhere seems to just cause bloat.
      <br>
      <br>
      Still, code style aside, can I suggest the warning be downgraded
      into a hint? Warnings should indicate the possibility of unstable
      code due to uninitialised values, for example, and DFA should be
      able to detect that anyway as a separate warning (e.g. if a case
      block doesn't initialise an output value in all of its branches).
    </blockquote>
    <p>Sorry, but you seem to suffer from the "lazy programmer
      syndrome". A warning is correct, as a case of unhandled <b><i>case</i></b>
      statement can indeed lead to unexpected side effects. While there
      could be cases where you might want to react with the <i><b>case</b></i>
      statement to only certain conditions (and can safely assume that
      all other conditions don't do ill effects), there is also the case
      where an unknown/unexpected condition is passed and that can have
      dire consequences, and should be properly acted upon, by the <i><b>else</b></i>
      clause within the case statement...</p>
    <p>Ralf<br>
    </p>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>