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


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/


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