This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: include strstream instead of strstream.h
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: include strstream instead of strstream.h
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sun, 12 Aug 2001 11:25:26 -0700 (PDT)
- cc: Craig Rodrigues <rodrigc at mediaone dot net>, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> No, the warning is not fine, because it pretends that C-headers <X.h> are
> deprecated, which is not true.
Here's the warning:
This file includes at least one deprecated or antiquated header. \
Please use the <X> header instead of <X.h> header for 'C++'
includes and use the <cX> header instead of <X.h> header for 'C'
includes. To disable this warning use -Wno-deprecated.
Gaby, you are correct in that the "C" <X.h> headers are compatibility
headers, and not deprecated. Of course, the compatibility headers are not
done correctly (or at all, actually), which was the point of this
warning. Sorry if that's confusing.
Something like:
This file includes at least one deprecated or antiquated C++ header. \
Please consider using one of the 32 headers found in section 17.4.1.2
of the C++ standard: this may include substituting the <X> header instead of
<X.h> header for C++ includes, or using <sstream> instead of
<strstream.h>. To disable this warning use -Wno-deprecated
Might be more accurate.
-benjamin