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

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

[Octave-bug-tracker] [bug #58791] Compilation warning messages


From: Rik
Subject: [Octave-bug-tracker] [bug #58791] Compilation warning messages
Date: Fri, 4 Sep 2020 11:06:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36

Follow-up Comment #9, bug #58791 (project octave):

Glad the warnings went away.

The one remaining, interestingly enough, is correct.  ODEPACK is an external
library though, so the fix should really be made upstream.

The issue is that the error handling routine XERRWD declares the last two
function parameters as double precision values.  The file sintdy.f is for
single precision calculations so variables TP and TN are declared as REAL
(single precision).  What's interesting is that some programmer somewhere
understood a bit and used DBLE() to cast TP to double precision.  If you want
to test my hypothesis you could add DBLE (TN) on line 107 of sintdy.f and
check that the warning message goes away.

This is unlikely ever to be a problem because XERRWD is only called when
something has gone wrong and my guess is that single to double conversion
probably is gracefully handled by the compiler.  At worst, maybe the reporting
would be slightly bad.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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