Re: [Boost-bugs] [Boost C++ Libraries] #7094: warning: unrecognized #pragma GCC system_header

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7094: warning: unrecognized #pragma GCC system_header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-10 16:13:18


#7094: warning: unrecognized #pragma GCC system_header
---------------------------------+------------------------------------------
  Reporter: 1czajnik@… | Owner: emildotchevski
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.50.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------------+------------------------------------------

Comment (by 1czajnik@…):

 Replying to [comment:4 1czajnik@…]:
> Thanks for fixing this, Emil. I took a look at 79398, and I think this
 should work for my compiler. But one thing came to my mind: what about
 compilers, that don't define {{{__GNUC__}}} at all?
>
> I mean, don't we need some additional guards like:
> {{{
> #if defined(__GNUC__) && defined(__GNUC_MINOR__) && \
> (__GNUC__*100+__GNUC_MINOR__>301) && \
> !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
> }}}
 False alarm, I just checked in MinGW, that something like:
 {{{
 #if (asdf*100+ghjk > 5)
 #error
 #endif
 }}}
 compiles fine without asdf or ghjk defined. I didn't know the preprocessor
 was supposed to work like this ;-)
 Cheers

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7094#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC