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

Subject: [Boost-bugs] [Boost C++ Libraries] #7094: warning: unrecognized #pragma GCC system_header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-06 09:28:54


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

 Below is a list of files, that contain something like:
 {{{
 #if defined(__GNUC__)
 #pragma GCC system_header
 #endif
 }}}
 which causes a warning on my TI compiler.

 {{{
 boost\exception\all.hpp
 boost\exception\current_exception_cast.hpp
 boost\exception\detail\error_info_impl.hpp
 boost\exception\detail\exception_ptr.hpp
 boost\exception\detail\is_output_streamable.hpp
 boost\exception\detail\object_hex_dump.hpp
 boost\exception\detail\type_info.hpp
 boost\exception\diagnostic_information.hpp
 boost\exception\errinfo_errno.hpp
 boost\exception\exception.hpp
 boost\exception\get_error_info.hpp
 boost\exception\info.hpp
 boost\exception\info_tuple.hpp
 boost\exception\to_string.hpp
 boost\exception\to_string_stub.hpp
 boost\throw_exception.hpp
 }}}

 In other files, i.e. boost\integer.hpp, I've found this #pragma guarded
 against {{{__GNUC__ >= 4}}}:
 {{{
 #if defined(__GNUC__) && (__GNUC__ >= 4)
 #pragma GCC system_header
 #endif
 }}}
 which doesn't cause a warning on my compiler, because it defines
 {{{__GNUC__=3}}}.

 Could this be fixed in the files on the list above, or are there some
 {{{__GNUC__=3}}} compilers, that need this pragma to be enabled?

 Regards,
 Kris

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7094>
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