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

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

[Octave-bug-tracker] [bug #57814] "shadows core function" warnings when


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #57814] "shadows core function" warnings when loading nan package
Date: Sat, 15 Feb 2020 15:38:26 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #2, bug #57814 (project octave):

Sorry, the rest of my post got lost due to an unclosed "verbatim" tag.

What I mean is, yeah, I agree that this is intended behavior. And since it's
working as intended, perhaps the warnings should be suppressed? They don't
indicate anything going wrong, and no user action is required, so IMHO they
shouldn't be displayed to the user. 

This is what I see:


octave:2> pkg load nan
warning: function /Users/janke/octave/nan-3.4.5/mad.m shadows a core library
function
warning: called from
    load_packages_and_dependencies at line 48 column 5
    load_packages at line 47 column 3
    pkg at line 461 column 7
warning: function /Users/janke/octave/nan-3.4.5/prctile.m shadows a core
library function
warning: called from
    load_packages_and_dependencies at line 48 column 5
    load_packages at line 47 column 3
    pkg at line 461 column 7


and when I see something like that, I assume something's going wrong that I
need to address.

Maybe a little magic in PKG_ADD could be used to temporarily disable the
"shadows core function" warning while the nan package is adding its stuff to
the path?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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