This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning about static functions in headers


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]