octave-maintainers
[Top][All Lists]
Advanced

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

Re: f77_exception_encountered


From: Doug Stewart
Subject: Re: f77_exception_encountered
Date: Thu, 3 Jan 2019 10:27:39 -0500



On Thu, Jan 3, 2019 at 9:53 AM John W. Eaton <address@hidden> wrote:
On 1/3/19 9:29 AM, Doug Stewart wrote:
> While installing the control pkg I get lots of these warnings:
> Is this something that is wrong with the control pkg or is it in Octave?
>
>
>
> In file included from __control_slicot_functions__.cc:48:0:
> sl_mb05nd.cc: In function ‘octave_value_list F__sl_mb05nd__(const
> octave_value_list&, int)’:
> sl_mb05nd.cc:96:13: warning: ‘f77_exception_encountered’ is deprecated:
> [4.4]: this variable is obsolete and should not be needed
> [-Wdeprecated-declarations]
>           if (f77_exception_encountered)
>               ^~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from common.h:31:0,
>                   from sl_ab08nd.cc:31,
>                   from __control_slicot_functions__.cc:1:
> /usr/local/include/octave-4.4.1/octave/../octave/f77-fcn.h:49:18: note:
> declaredhere
>   static const int f77_exception_encountered = 0;

The f77_exception_encountered variable is no longer used by Octave.  We
left it in the header file so that older code that used it would
continue to compile.  The value will always be zero now.  So it is safe
to remove any blocks of code like

   if (f77_exception_encountered) { ... }

as they will never be executed now.  This has been true since Octave
version 4.4.0.

jwe



Thanks
I will remove It from the control pkg.


--
DASCertificate for 206392


reply via email to

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