[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib bugs on OSX & C++
From: |
Bruno Haible |
Subject: |
Re: gnulib bugs on OSX & C++ |
Date: |
Sat, 10 Apr 2010 11:42:18 +0200 |
User-agent: |
KMail/1.9.9 |
Jarno Rajahalme wrote:
> main.cc:9: warning: call to 'strndup' declared with attribute warning: The
> symbol ::strndup refers to the system function. Use gnulib::strndup instead.
> main.cc:12: warning: call to 'close' declared with attribute warning: The
> symbol ::close refers to the system function. Use gnulib::close instead.
I don't understand the origin of these warnings. _GL_CXXALIAS_SYS is defined
in a way as to avoid these warnings. Can you show the relevant preprocessed
output?
$ g++-mp-4.4 -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 main.cc -E | grep
strndup
$ g++-mp-4.4 -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 main.cc -E | grep close
Bruno
- Re: gnulib bugs on OSX & C++, (continued)
Re: strnlen on OSX & C++, Bruno Haible, 2010/04/10
Re: gnulib bugs on OSX & C++,
Bruno Haible <=
Re: gnulib bugs on OSX & C++, Bruno Haible, 2010/04/10