Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -Wall -c "14_5d.cpp" -I /home/pi/C++/14_5DelegatingToALinkedList/ -fpermissive -Wreorder -Wparentheses (in directory: /home/pi/C++/14_5DelegatingToALinkedList)
- In file included from 14_5d.cpp:4:0:
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:76:8: warning: extra qualification ‘PartsList::’ on member ‘Iterate’ [-fpermissive]
- void PartsList::Iterate(void (Part::*f)()const) const;
- ^
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:96:33: warning: ISO C++ forbids declaration of ‘operator+’ with no type [-fpermissive]
- operator+(const PartsCatalog &);
- ^
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In member function ‘void PartsCatalog::ShowAll()’:
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:97:47: error: invalid use of non-static member function ‘virtual void Part::Display() const’
- void ShowAll() { thePartsList.Iterate(Part::Display); }
- ^
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In constructor ‘CarPart::CarPart(USHORT, ULONG)’:
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:33:10: warning: ‘CarPart::itsModelYear’ will be initialized after [-Wreorder]
- USHORT itsModelYear;
- ^
- 14_5d.cpp:17:17: warning: base ‘Part’ [-Wreorder]
- Part(partNumber)
- ^
- 14_5d.cpp:15:1: warning: when initialized here [-Wreorder]
- CarPart::CarPart(USHORT year, ULONG partNumber):
- ^
- In file included from 14_5d.cpp:4:0:
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp: In constructor ‘AirPlanePart::AirPlanePart(USHORT, ULONG)’:
- /home/pi/C++/14_5DelegatingToALinkedList/14_5h.hpp:48:11: warning: ‘AirPlanePart::itsEngineNumber’ will be initialized after [-Wreorder]
- USHORT itsEngineNumber;
- ^
- 14_5d.cpp:22:17: warning: base ‘Part’ [-Wreorder]
- Part(PartNumber)
- ^
- 14_5d.cpp:20:1: warning: when initialized here [-Wreorder]
- AirPlanePart::AirPlanePart(USHORT EngineNumber, ULONG PartNumber):
- ^
- 14_5d.cpp: In member function ‘void PartsList::Iterate(void (Part::*)() const) const’:
- 14_5d.cpp:119:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
- while (pNode = pNode->GetNext());
- ^
- Compilation failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement