[prev in list] [next in list] [prev in thread] [next in thread] 

List:       illumos-developer
Subject:    [developer] Review Request 1038: 9395 ed: this statement may fall through
From:       Toomas Soome <tsoome () me ! com>
Date:       2018-03-28 9:04:02
Message-ID: CBD94F52-A030-494E-A2F8-A002DEE38AA6 () me ! com
[Download RAW message or body]

hi!

please review.

thanks,
toomas

> Begin forwarded message:
> 
> From: Toomas Soome <tsoome@illumos.org>
> Subject: Review Request 1038: 9395 ed: this statement may fall through
> Date: 28 March 2018 at 12:03:27 EEST
> To: Joshua Clulow <josh@sysmgr.org>, Vitaliy Gusev <gusev.vitaliy@icloud.com>, \
> Marcel Telka <marcel@telka.sk>, Andy Fiddaman <af@citrus-it.net>, Toomas Soome \
> <tsoome@me.com>, Yuri Pankov <yuripv@yuripv.net>, Albert Lee <trisk@nexenta.com>, \
> Juraj Lutter <juraj@lutter.sk>, Dan Vatca <dan@syneto.net>, John Howard \
>                 <Echosoft.LLC@gmail.com>, Norm Jacobs <naj@snapcon.com>
> Reply-To: Toomas Soome <tsoome@illumos.org>
> 
> This is an automatically generated e-mail. To reply, visit: \
> https://www.illumos.org/rb/r/1038/ <https://www.illumos.org/rb/r/1038/> Review \
> request for general. By Toomas Soome.
> Bugs: 9395 <https://www.illumos.org/issues/9395>
> Repository: illumos-gate
> Description
> 
> ed.c: In function 'commands':
> ed.c:581:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
> c = 'e';
> ~~^~~~~
> ed.c:582:2: note: here
> case 'e':
> ^~~~
> ed.c:680:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
> listf++;
> ~~~~~^~
> ed.c:681:2: note: here
> case 'p':
> ^~~~
> ed.c:702:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
> fchange = 0;
> ~~~~~~~~^~~
> ed.c:703:2: note: here
> case 'q':
> ^~~~
> ed.c:706:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
> quit(sig);
> ^~~~~~~~~
> ed.c:708:2: note: here
> case 'r':
> ^~~~
> ed.c: In function 'fspec':
> ed.c:2854:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
> if (*(fsp+1) == ':') {
> ^
> ed.c:2865:4: note: here
> case ' ': continue;
> ^~~~
> cc1: all warnings being treated as errors
> Diffs
> 
> usr/src/cmd/ed/ed.c (6d3bd06e729a4c80669d08c4e923c9a34a07e6a2)
> View Diff <https://www.illumos.org/rb/r/1038/diff/1/>

------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/discussions/T64f3bfb85fbf241d-Mf500665954d62f0fa870a7c3
 Delivery options: https://illumos.topicbox.com/groups


[Attachment #3 (unknown)]

<html><html><html><head><meta content="text/html; charset=us-ascii" \
http-equiv="Content-Type" /></head><body class="" style="word-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;">hi!<div class=""><br \
class="" /></div><div class="">please review.</div><div class=""><br class="" \
/></div><div class="">thanks,</div><div class="">toomas<br class="" /><div><br \
class="" /><blockquote class="" type="cite"><div class="">Begin forwarded \
message:</div><br class="Apple-interchange-newline" /><div class="" \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: \
0px;"><span class="" style="font-family: -webkit-system-font, Helvetica Neue, \
Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);"><b class="">From: </b></span><span \
class="" style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, \
sans-serif;">Toomas Soome &lt;<a class="" \
href="mailto:tsoome@illumos.org">tsoome@illumos.org</a>&gt;<br class="" \
/></span></div><div class="" style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px;"><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, \
1.0);"><b class="">Subject: </b></span><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif;"><b class="">Review \
Request 1038: 9395 ed: this statement may fall through</b><br class="" \
/></span></div><div class="" style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px;"><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, \
1.0);"><b class="">Date: </b></span><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif;">28 March 2018 at \
12:03:27 EEST<br class="" /></span></div><div class="" style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span class="" \
style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; \
color:rgba(0, 0, 0, 1.0);"><b class="">To: </b></span><span class="" \
style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, \
sans-serif;">Joshua Clulow &lt;<a class="" \
href="mailto:josh@sysmgr.org">josh@sysmgr.org</a>&gt;, Vitaliy Gusev &lt;<a class="" \
href="mailto:gusev.vitaliy@icloud.com">gusev.vitaliy@icloud.com</a>&gt;, Marcel Telka \
&lt;<a class="" href="mailto:marcel@telka.sk">marcel@telka.sk</a>&gt;, Andy Fiddaman \
&lt;<a class="" href="mailto:af@citrus-it.net">af@citrus-it.net</a>&gt;, Toomas Soome \
&lt;<a class="" href="mailto:tsoome@me.com">tsoome@me.com</a>&gt;, Yuri Pankov &lt;<a \
class="" href="mailto:yuripv@yuripv.net">yuripv@yuripv.net</a>&gt;, Albert Lee &lt;<a \
class="" href="mailto:trisk@nexenta.com">trisk@nexenta.com</a>&gt;, Juraj Lutter \
&lt;<a class="" href="mailto:juraj@lutter.sk">juraj@lutter.sk</a>&gt;, Dan Vatca \
&lt;<a class="" href="mailto:dan@syneto.net">dan@syneto.net</a>&gt;, John Howard \
&lt;<a class="" href="mailto:Echosoft.LLC@gmail.com">Echosoft.LLC@gmail.com</a>&gt;, \
Norm Jacobs &lt;<a class="" href="mailto:naj@snapcon.com">naj@snapcon.com</a>&gt;<br \
class="" /></span></div><div class="" style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px;"><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, \
1.0);"><b class="">Reply-To: </b></span><span class="" style="font-family: \
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif;">Toomas Soome &lt;<a \
class="" href="mailto:tsoome@illumos.org">tsoome@illumos.org</a>&gt;<br class="" \
/></span></div><br class="" /><div class=""><div class=""><div class="" \
style="font-family: Verdana, Arial, Helvetica, Sans-Serif;"><table bgcolor="#f9f3c9" \
cellpadding="12" class="" style="border: 1px #c9c399 solid; border-radius: 6px; \
-moz-border-radius: 6px; -webkit-border-radius: 6px;" width="100%"><tbody \
class=""><tr class=""><td class="">  This is an automatically generated e-mail. To \
reply, visit:  <a class="" \
href="https://www.illumos.org/rb/r/1038/">https://www.illumos.org/rb/r/1038/</a></td></tr></tbody></table><br \
class="" /><table bgcolor="#fefadf" cellpadding="12" cellspacing="0" class="" \
style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;" width="100%"><tbody class=""><tr class=""><td \
class=""><div class="">Review request for general.</div><div class="">By Toomas \
Soome.</div><div class="" style="margin-top: 1.5em;"><strong class="" style="color: \
#575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </strong>


 <a class="" href="https://www.illumos.org/issues/9395">9395</a></div><div class="" \
style="margin-top: 1.5em;"><strong class="" style="color: #575012; font-size: \
10pt;">Repository: </strong> illumos-gate
</div><h1 class="" style="color: #575012; font-size: 10pt; margin-top: \
1.5em;">Description </h1><table bgcolor="#ffffff" cellpadding="10" cellspacing="0" \
class="" style="border: 1px solid #b8b5a0" width="100%"><tbody class=""><tr \
class=""><td class=""><pre class="" style="margin: 0; padding: 0; white-space: \
pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: \
-o-pre-wrap; word-wrap: break-word;">ed.c: In function &#39;commands&#39;: \
ed.c:581:5: error: this statement may fall through [-Werror=implicit-fallthrough=]  c \
= &#39;e&#39;;  ~~^~~~~
ed.c:582:2: note: here
  case &#39;e&#39;:
  ^~~~
ed.c:680:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
   listf++;
   ~~~~~^~
ed.c:681:2: note: here
  case &#39;p&#39;:
  ^~~~
ed.c:702:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
   fchange = 0;
   ~~~~~~~~^~~
ed.c:703:2: note: here
  case &#39;q&#39;:
  ^~~~
ed.c:706:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
   quit(sig);
   ^~~~~~~~~
ed.c:708:2: note: here
  case &#39;r&#39;:
  ^~~~
ed.c: In function &#39;fspec&#39;:
ed.c:2854:9: error: this statement may fall through [-Werror=implicit-fallthrough=]
      if (*(fsp+1) == &#39;:&#39;) {
         ^
ed.c:2865:4: note: here
    case &#39; &#39;: continue;
    ^~~~
cc1: all warnings being treated as errors</pre></td></tr></tbody></table><h1 class="" \
style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs </h1><ul class="" \
style="margin-left: 3em; padding-left: 0;"><li class="">usr/src/cmd/ed/ed.c <span \
class="" style="color: grey">(6d3bd06e729a4c80669d08c4e923c9a34a07e6a2)</span></ul><p \
class=""><a class="" href="https://www.illumos.org/rb/r/1038/diff/1/" \
style="margin-left: 3em;">View \
Diff</a></td></tr></tbody></table></div></div></div></blockquote></div><br class="" \
/></div><div id="topicbox-footer" style="margin:10px 0 0;border-top:1px solid \
#ddd;border-color:rgba(0,0,0,.15);padding:7px 0;">

<strong><a href="https://illumos.topicbox.com/latest" \
style="color:inherit;text-decoration:none">illumos</a></strong>  /
<a href="https://illumos.topicbox.com/groups/developer/members">illumos-developer</a>
 /
<a href="https://illumos.topicbox.com/groups/developer/discussions/T64f3bfb85fbf241d-Mf500665954d62f0fa870a7c3">Permalink</a>
 <a href="https://illumos.topicbox.com/groups" style="float:right">Delivery \
options</a> </div>
</body></html></html></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic