octave-maintainers
[Top][All Lists]
Advanced

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

Re: gnulib warnings when compiling Faddeeva.cc


From: Júlio Hoffimann
Subject: Re: gnulib warnings when compiling Faddeeva.cc
Date: Sun, 9 Dec 2012 15:20:52 -0300

Also copysign() is C++11: http://en.cppreference.com/w/cpp/numeric/math/copysign

For that we have no option other than switch to gnulib implementation.


2012/12/9 Júlio Hoffimann <address@hidden>
I encountered the same warning, making it explicit with std::floor() doesn't help.

It must have something to do with the build system? Why is gnulib::floor() preferred over std::floor()?

Júlio.


2012/12/7 Jordi Gutiérrez Hermoso <address@hidden>
I just noticed these:

/home/jordi/coding/vcs/octave-devel/liboctave/cruft/Faddeeva/Faddeeva.cc:
In function 'cmplx Faddeeva::w(cmplx, double)':
/home/jordi/coding/vcs/octave-devel/liboctave/cruft/Faddeeva/Faddeeva.cc:689:
warning: call to 'floor' declared with attribute warning: The symbol
::floor refers to the system function. Use gnulib::floor instead.
/home/jordi/coding/vcs/octave-devel/liboctave/cruft/Faddeeva/Faddeeva.cc:877:
warning: call to 'floor' declared with attribute warning: The symbol
::floor refers to the system function. Use gnulib::floor instead.
/home/jordi/coding/vcs/octave-devel/liboctave/cruft/Faddeeva/Faddeeva.cc:902:
warning: call to 'copysign' declared with attribute warning: The
symbol ::copysign refers to the system function. Use gnulib::copysign
instead.

Is it ok to perform the suggested replacements for gnulib functions?

- Jordi G. H.



reply via email to

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