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

 
 

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

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.13-d3ae.
    Corresponding source code