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

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. Regards David Binderman

On Thu, May 14, 2015 at 1:40 PM, David Binderman
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
participants (2)
-
David Binderman
-
Thomas Miedema