bugGNU Octave - Bugs: bug #51553, New unused function warning during...

 
 

bug #51553: New unused function warning during build for prepend_octave_home()

Submitted by:  Rik <rik5>
Submitted on:  Mon 24 Jul 2017 03:26:24 AM UTC  
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Mon 24 Jul 2017 05:28:36 PM UTC, comment #3: 

Just re-built and the warning is gone.  Closing report.

Rik <rik5>
Project Administrator
Mon 24 Jul 2017 04:54:17 PM UTC, comment #2: 

Oops, wrong changeset.  I meant to link to this one:

http://hg.savannah.gnu.org/hgweb/octave/rev/e5a1c8eb1d5b

John W. Eaton <jwe>
Project Administrator
Mon 24 Jul 2017 04:53:18 PM UTC, comment #1: 

The shared-fcns.h file duplicates a few functions from liboctave or libinterp so that we don't have to link the main programs with those libraries.  The function that triggers the warning is used by one of the main programs but not by the cli version.  I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/e263cf468abd

John W. Eaton <jwe>
Project Administrator
Mon 24 Jul 2017 03:26:24 AM UTC, original submission:  

Recent builds now produce the following warning about an unused function:

src/shared-fcns.h:174:1: warning: ‘std::__cxx11::string prepend_octave_home(const string&)’ defined but not used [-Wunused-function]

The function prepend octave_home() exists in both src/shared-fcns.h and in libinterp/corefcn/defaults.cc.  There are a number of other functions which exist in both places.  I don't know what the intent is so I have not tried to fix this.

Rik <rik5>
Project Administrator

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  • -email is unavailable- added by rik5
  •  

    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
    2017-07-24 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    2017-07-24 rik5 Carbon-Copy- => Added jwe

    Back to the top


    Powered by Savane 3.5