utils/hp2ps/Main.c:88: possible missing break ?

Thomas Miedema thomasmiedema at gmail.com
Tue Sep 15 21:25:51 UTC 2015


On Thu, May 14, 2015 at 1:40 PM, David Binderman <dcb314 at hotmail.com> wrote:

> Hello there,
>
> [utils/hp2ps/Main.c:88] -> [utils/hp2ps/Main.c:91]: (warning) Variable
> 'iflag' is reassigned
>  a value before the old one has been used. 'break;' missing?
>
> Source code is
>
>         switch( *(*argv + 1) ) {
>           case '-':
>             iflag = -1;
>           case '+':
>           default:
>             iflag = 1;
>         }
>
> Suggest add missing break.
>

Fixed, thanks.
https://phabricator.haskell.org/rGHC325efac29827447402ad93fe99578fd791ffb822
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20150915/59491146/attachment.html>


More information about the ghc-devs mailing list