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]
Other format: [Raw text]

[Bug middle-end/36036] New: gcc emits warnings/notes from system headers.


attached tarball contains small boost-1.35 based source and preprocessed file.

$ make ii
/local/devel/toolchain43/x86_64-gnu-linux/bin/x86_64-gnu-linux-g++ -c \
-pthread -Wall -O2 --save-temps \
-isystem ~/dvm/trunk/buildenv/linux/gcc-4.3/64/STLport-5.1.5/include/stlport \
-isystem ~/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include \
2.cpp

/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:
In function 'Target boost::detail::lexical_cast(typename
boost::call_traits<Source>::param_type, CharT*, size_t) [with Target = int,
Source = stlp_std::basic_string<char, stlp_std::char_traits<char>,
stlp_std::allocator<char> >, bool Unlimited = false, CharT =
boost::lexical_cast::char_type]':
/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:1147:
warning: 'result' may be used uninitialized in this function
/ahome/pawels/dvm/trunk/buildenv/linux/gcc-4.3/64/boost-stdc++-1.35.0/include/boost/lexical_cast.hpp:1147:
note: 'result' was declared here

-isystem should suppress all this magic diagnostics for boost headers.

ps). you can locate the 'result' by searching '# 1146' in .ii file.

gcc-4.3-20080417.


-- 
           Summary: gcc emits warnings/notes from system headers.
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: x86_64-gnu-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36036


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