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: John W. Eaton
Subject: Re: gnulib warnings when compiling Faddeeva.cc
Date: Thu, 13 Dec 2012 17:01:21 -0500

On 13-Dec-2012, Steven G. Johnson wrote:

| On 12/13/12 4:32 PM, John W. Eaton wrote:
| > On 13-Dec-2012, Steven G. Johnson wrote:
| >
| > |>  I don't see a reason to not perform the replacement, but I think it
| > |>  can be done without touching your code.
| > |
| > | How?
| >
| > One way would be to put
| >
| >    #ifndef GNULIB_NAMESPACE
| >    #  define GNULIB_NAMESPACE
| >    #endif
| 
| Yes, I noticed that macro, and I could use it if necessary (although I 
| see no reason to replace floor in this context except to silence the 
| warning).   But I was curious to know what Jordi's suggestion was to do 
| it "without touching" the code; to me, inserting #ifdefs counts as 
| "touching".  :-)

No, you can't do it without adding the gnulib:: namespace tag.

I'd like to silence the warning.

| (Do I also have to include declarations of gnulib::floor etcetera, or is 
| the compilation somehow set up so that the gnulib math.h replaces the 
| <cmath> header?)

Yes, the gnulib replacement headers are found first and include the
system headers as necessary.

jwe


reply via email to

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