Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318093 - [Error Parser] GCCErrorParser treats instantiation warnings as errors
Summary: [Error Parser] GCCErrorParser treats instantiation warnings as errors
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 14:46 EDT by Andrew Gvozdev CLA
Modified: 2010-07-24 23:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2010-06-26 14:46:59 EDT
From user forums http://www.eclipse.org/forums/index.php?t=msg&th=170780&start=0&

The warning produced by GCC is:
> ../../../library/../include/Proms/PromsModelObjects/Treatmen tPlanSessionItem.hpp:104: warning: unused parameter ?args?
> In file included from ../../../library/../include/Proms/PromsViewObjects/PromsView ObjectComboBox.hpp:16,
> from ../../../library/../include/Proms/PromsViewObjects/Treatment PlanSessionItemPanel.hpp:16,
> from ../../../library/../include/Proms/PromsViewObjects/Treatment PlanSessionItemDialog.hpp:17,
> from ../../../library/../include/Proms/PromsViewObjects/Treatment PlanSessionItemTreeItemData.hpp:17,
> from ../../../library/../include/Proms/PromsViewObjects/Treatment PlanSessionTreeItemData.hpp:18,
> from ../../../library/../include/Proms/PromsViewObjects/Treatment PlanTreeItemData.hpp:18,
> from ../../../library/PromsViewObjects/TreatmentPlanSessionTreePa nel.cpp:17:
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp: In instantiation of ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&, lastName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, lastName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?:
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&, userId_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int, objectId_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, int) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from ?static typename Danu::User::boost_param_result_105newCreationArguments<Args >::type Danu::User::boost_param_implnewCreationArguments(const Args&) [with Args = boost::parameter::aux::empty_arg_list]?
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: instantiated from here
> /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects /User.hpp:94: warning: unused parameter ?args?

And the errors that this warning generates are

> instantiated from ?static ResultType Danu::User::boost_param_default_105newCreationArguments(Resu ltType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]?

for each line in the warning that mentions "instantiated" (15 in total).
Comment 1 Andrew Gvozdev CLA 2010-06-26 23:10:06 EDT
Committed a fix on HEAD (8.0) and 7.0.1.
Comment 3 CDT Genie CLA 2010-07-12 12:23:06 EDT
*** cdt cvs genie on behalf of agvozdev ***
bug 318093: fixed test failing Hudson build#248

[*] GCCErrorParserTests.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/GCCErrorParserTests.java?root=Tools_Project&r1=1.10&r2=1.11
Comment 4 CDT Genie CLA 2010-07-24 23:23:03 EDT
*** cdt cvs genie on behalf of agvozdev ***
bug 318093: fixed test failing Hudson
=1.11

[*] GCCErrorParserTests.java 1.9.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/GCCErrorParserTests.java?root=Tools_Project&r1=1.9.2.1&r2=1.9.2.2