This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: __get_c_string


Edwards, Phil wrote:

> If one includes <string> and compiles with -Wall, this warning appears:
>
> .../include/g++-v3/bits/basic_string.h:974: warning: `const char *
> __get_c_string(const string &)' defined but not used

This is used for the <stdexcept> exception classes, so that they can get
around a recursive string/exception include, and just forward declare the
string class. It is actually used, so applying the unused attribute is
probably not the best solution.

-benjamin


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