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: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 12 Dec 2000 23:21:56 +0100
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20001212163509.A24321@disaster.jaj.com>
Phil Edwards <pedwards@disaster.jaj.com> writes:
| 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?
I don't what that brings us to emit such a diagnostic about an entity
in a system header...
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com