bugGNU Octave - Bugs: bug #53542, quad.cc:355:11: warning: this...

 
 

bug #53542: quad.cc:355:11: warning: this statement may fall through

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Sun 01 Apr 2018 06:35:19 PM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 02 Apr 2018 05:15:48 AM UTC, comment #2: 

Looks fine as of 699fe9cd51ca (stable) tip

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Mon 02 Apr 2018 05:07:36 AM UTC, comment #1: 

I believe I fixed this here http://hg.savannah.gnu.org/hgweb/octave/rev/699fe9cd51ca, but I don't have a very modern gcc for testing.

Marking as Ready for Test.

Rik <rik5>
Project Administrator
Sun 01 Apr 2018 06:35:19 PM UTC, original submission:  

With gcc 8.0.1 I see:


../libinterp/corefcn/quad.cc: In function ‘octave_value_list Fquad(octave::interpreter&, const octave_value_list&, int)’:
../libinterp/corefcn/quad.cc:260:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
           switch (tol.numel ())
           ^~~~~~
../libinterp/corefcn/quad.cc:274:9: note: here
         case 3:
         ^~~~
../libinterp/corefcn/quad.cc:355:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
           switch (tol.numel ())
           ^~~~~~
../libinterp/corefcn/quad.cc:369:9: note: here
         case 3:
         ^~~~

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-02 rik5 StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-04-02 rik5 StatusNone => Ready For Test

    Back to the top


    Powered by Savane 3.5