warning: #import is a deprecated GCC extension

Manuel López-Ibáñez lopezibanez@gmail.com
Fri Nov 14 16:24:00 GMT 2008


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.



More information about the Gcc mailing list