octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61784] builtins deprecated warning problem


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem
Date: Tue, 18 Jan 2022 12:17:40 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Update of bug #61784 (project octave):

        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #8:

@Markus:  I tried the attached change so that the template instantiation and
pointer trick is applied to all functions declared in builtin-defun-decls.h
that have octave::interperter& as the first argument.  Then I tried compiling
the following .oct file function:


#include <octave/oct.h>
#include <octave/interpreter.h>
#include <octave/builtin-defun-decls.h>

DEFUN_DLD (lpath, args, nargout,
           "Hello World Help String")
{
  octave::interpreter& interp = *octave::interpreter::the_interpreter ();

  Fdisp (octave_value ("hello"));
  F__dump_load_path__ (interp);

  return octave_value_list ();
}


With that, it does compile and I correctly see one deprecated function warning
about Fdisp.  But I also see deprecated function warnings for all the
functions in builtin-defun-decls.h that have octave::interpreter& as the first
argument, not just the one that is used.  I couldn't see a way to avoid that.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61784>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]