Recent versions of gcc have a "note" type of message, which is a complement to "error" or "warning" messages, but which is currently processed the same way than "error" (with the same colors). Consequently the "error" color can appear with a "warning", without any "error". Moreover "intro" text is composed of a filename and a message, but it is currently not possible to use different color for filename and message. My patch adds the following parameters: +noteFileNameColor +noteNumberColor +noteMessageColor -introColor +introFileNameColor +introMessageColor and process them correctly. Reproducible: Always Steps to Reproduce: /usr/include/boost-1_35/boost/date_time/constrained_value.hpp: In static member function 'static ymd_type_ boost::date_time::gregorian_calendar_base...': /usr/include/boost-1_35/boost/date_time/constrained_value.hpp:64: warning: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' may be used uninitialized in this function /usr/include/boost-1_35/boost/date_time/gregorian_calendar.ipp:122: note: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' was declared here Actual Results: <IntroColor> /usr/include/boost-1_35/boost/date_time/constrained_value.hpp: In static member function 'static ymd_type_ boost::date_time::gregorian_calendar_base...': </IntroColor> <WarningColors> /usr/include/boost-1_35/boost/date_time/constrained_value.hpp:64: warning: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' may be used uninitialized in this function </WarningColors> <ErrorColors> /usr/include/boost-1_35/boost/date_time/gregorian_calendar.ipp:122: note: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' was declared here </ErrorColors> Expected Results: <IntroFileNameColor> /usr/include/boost-1_35/boost/date_time/constrained_value.hpp: </IntroFileNameColor><IntroMessageColor>In static member function 'static ymd_type_ boost::date_time::gregorian_calendar_base...': </IntroMessageColor> <WarningColors> /usr/include/boost-1_35/boost/date_time/constrained_value.hpp:64: warning: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' may be used uninitialized in this function </WarningColors> <NoteColors> /usr/include/boost-1_35/boost/date_time/gregorian_calendar.ipp:122: note: 'year.boost::gregorian::greg_year::<anonymous>.boost::CV::constrained_value<boost::CV::simple_exception_policy<short unsigned int, 1400u, 10000u, boost::gregorian::bad_year> >::value_' was declared here </NoteColors>
Created attachment 208667 [details, diff] adds correct "note" and "intro" messages processing
added to -r5, thanks!