This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: [g++] namespace problem


Phil Edwards wrote:
> 
> On Fri, Sep 01, 2000 at 05:00:53PM -0600, Martin Sebor wrote:
> > Wrt. to the this project (just a different implementation), is there a
> > way to prevent the warning: ANSI C does not allow `#include_next' and
> > still use the directive? gcc somehow knows not to give the warning for
> > its own or the OS headers (on Linux) but it complains about it in my own
> > <limits.h> (using a full pathname doesn't work).
> 
> Try turning off the -Wunknown-pragmas warning, maybe.  Use whatever
> warning options you have, and then follow them with -Wno-unknown-pragmas.
> (Check the spelling with the manual first.)

Unfortunately that didn't do it. I see a #pragma as the only option
since I can't expect users to be willing turn the warning off on the
command line. But that's really a request for an enhancement (i.e.,
diagnostic numbers and a #pragma disable/enable/push/pop, etc.)...

Thanks
Martin

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