This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] enable warning for backward headers
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] enable warning for backward headers
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 6 Apr 2001 15:11:04 -0700
Yep. Now that the g++ testsuite has been assimilated, we can not start
to warn when using deprecated and antiquated headers.
Thanks for taking care of the cpplib bits Neil.
-benjamin
x86/linux, no new regressions
2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/backward_warning.h: Re-enable.
Index: include/backward/backward_warning.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/backward_warning.h,v
retrieving revision 1.2
diff -c -p -r1.2 backward_warning.h
*** backward_warning.h 2001/04/06 08:00:55 1.2
--- backward_warning.h 2001/04/06 22:09:13
***************
*** 28,35 ****
#ifndef _CPP_BACKWARD_BACKWARD_WARNING_H
#define _CPP_BACKWARD_BACKWARD_WARNING_H 1
! //#ifdef __DEPRECATED
! #if 0
# warning "This file includes at least one deprecated or antiquated header."
# warning "Please use the <X> file instead of <X.h> file for "C++" includes"
# warning "and use the <cX> file instead of <X.h> file for "C" includes."
--- 28,34 ----
#ifndef _CPP_BACKWARD_BACKWARD_WARNING_H
#define _CPP_BACKWARD_BACKWARD_WARNING_H 1
! #ifdef __DEPRECATED
# warning "This file includes at least one deprecated or antiquated header."
# warning "Please use the <X> file instead of <X.h> file for "C++" includes"
# warning "and use the <cX> file instead of <X.h> file for "C" includes."