This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: #import is a deprecated GCC extension
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: "Jack Howarth" <howarth at bromo dot msbb dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Nov 2008 16:47:56 +0100
- Subject: Re: warning: #import is a deprecated GCC extension
- References: <20081113044637.GA24759@bromo.msbb.uc.edu>
2008/11/13 Jack Howarth <howarth@bromo.msbb.uc.edu>:
> The darwin-specific gcc.dg/cpp/subframework1.c -fno-show-column test case
> is failing under gcc trunk for the excessive errors test because we now
> get warnings...
>
> warning: #import is a deprecated GCC extension
>
> Is there a particular way to modify an excessive errors test case to
> have a particular warning like this be ignored? Thanks in advance for
> any hints on solving this issue.
> Jack
-Wno-deprecated?
Or even better:
/* { dg-warning "import is a deprecated GCC extension" "deprecated" {
target *-*-* } 0 } */
Does that help?
Manuel.