This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning about static functions in headers
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: warning about static functions in headers
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sun, 17 Dec 2000 16:47:25 +0100 (CET)
- cc: <gcc at gcc dot gnu dot org>
On Tue, 12 Dec 2000, Phil Edwards wrote:
> With current CVS on sparc-sun-solaris2.8:
>
> 49% g++ -Wall 1019.cc .....
> /usr/include/time.h:258: warning: `char* asctime_r(const tm*, char*)' defined
> but not used
> /usr/include/time.h:264: warning: `char* ctime_r(const time_t*, char*)' defined
> but not used
> 50%
>
> Those are static functions. Should we be warning about them?
No, definitely not.
<time.h> is a system header, and we never should warn about those.
This is a regression; hopefully someone will address it soon.
Gerald
http://www.dbai.tuwien.ac.at/~pfeifer/tmp/include.solaris8/time.h has a
copy of that header, FWIW.
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/