; size_t = unsigned int]':
../include/PointerTable.cxx:56:12: required from 'P OpenSP::PointerTable::insert(P, OpenSP::Boolean) [with P = OpenSP::Ptr; K = OpenSP::String; HF = OpenSP::Hash; KF = OpenSP::NamedResourceKeyFunction; OpenSP::Boolean = bool]'
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
../include/Dtd.h:165:51: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector >::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector >::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Vector.cxx:33:1: warning: when initialized here [-Wreorder]
33 | Vector::Vector(size_t n, const T &t)
| ^~~~~~~~~
In file included from ../include/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(size_t, const T&) [with T = OpenSP::Named*; size_t = unsigned int]':
../include/PointerTable.cxx:56:12: required from 'P OpenSP::PointerTable::insert(P, OpenSP::Boolean) [with P = OpenSP::Named*; K = OpenSP::String; HF = OpenSP::Hash; KF = OpenSP::NamedTableKeyFunction; OpenSP::Boolean = bool]'
../include/NamedTable.h:28:40: required from 'T* OpenSP::NamedTable::insert(T*) [with T = OpenSP::ElementType]'
../include/Dtd.h:279:36: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Vector.cxx:33:1: warning: when initialized here [-Wreorder]
33 | Vector::Vector(size_t n, const T &t)
| ^~~~~~~~~
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, size_t, const T&) [with T = OpenSP::Ptr; size_t = unsigned int]':
../include/Vector.cxx:62:5: required from 'void OpenSP::Vector::assign(size_t, const T&) [with T = OpenSP::Ptr; size_t = unsigned int]'
../include/PointerTable.cxx:32:5: required from 'P OpenSP::PointerTable::insert(P, OpenSP::Boolean) [with P = OpenSP::Ptr; K = OpenSP::String; HF = OpenSP::Hash; KF = OpenSP::NamedResourceKeyFunction; OpenSP::Boolean = bool]'
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
../include/Dtd.h:165:51: required from here
../include/Vector.cxx:76:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Ptr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
76 | memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:12,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Ptr.h:17:7: note: 'class OpenSP::Ptr' declared here
17 | class Ptr {
| ^~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::Ptr]':
../include/Vector.cxx:65:5: required from 'void OpenSP::Vector::assign(size_t, const T&) [with T = OpenSP::Ptr; size_t = unsigned int]'
../include/PointerTable.cxx:32:5: required from 'P OpenSP::PointerTable::insert(P, OpenSP::Boolean) [with P = OpenSP::Ptr; K = OpenSP::String; HF = OpenSP::Hash; KF = OpenSP::NamedResourceKeyFunction; OpenSP::Boolean = bool]'
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
../include/Dtd.h:165:51: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Ptr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:12,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Ptr.h:17:7: note: 'class OpenSP::Ptr' declared here
17 | class Ptr {
| ^~~
make[3]: Leaving directory '/usr/src/RPM/BUILD/OpenSP-1.5.2/lib'
make[3]: Entering directory '/usr/src/RPM/BUILD/OpenSP-1.5.2/lib'
/bin/sh ../libtool --tag=CXX --mode=compile i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o Attribute.lo Attribute.cxx
libtool: compile: i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c Attribute.cxx -fPIC -DPIC -o .libs/Attribute.o
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/Attribute.h:17,
from Attribute.cxx:8:
../include/Ptr.h:72:3: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
72 | Ptr::isNull;
| ^~~~~~
../include/Ptr.h:73:3: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
73 | Ptr::clear;
| ^~~~~~
In file included from Attribute.cxx:12:
../include/Syntax.h: In member function 'OpenSP::Boolean OpenSP::Syntax::isB(OpenSP::Xchar) const':
../include/Syntax.h:382:42: warning: comparison of integer expressions of different signedness: 'OpenSP::Xchar' {aka 'int'} and 'const Char' {aka 'const unsigned int'} [-Wsign-compare]
382 | && !(standardFunctionValid_[fRE] && c == standardFunction_[fRE])
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
../include/Syntax.h:383:42: warning: comparison of integer expressions of different signedness: 'OpenSP::Xchar' {aka 'int'} and 'const Char' {aka 'const unsigned int'} [-Wsign-compare]
383 | && !(standardFunctionValid_[fRS] && c == standardFunction_[fRS]));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h: In constructor 'OpenSP::AttributeDefinition::AttributeDefinition(const StringC&, OpenSP::DeclaredValue*)':
../include/Attribute.h:291:28: warning: 'OpenSP::AttributeDefinition::declaredValue_' will be initialized after [-Wreorder]
291 | CopyOwner declaredValue_;
| ^~~~~~~~~~~~~~
../include/Attribute.h:287:17: warning: 'OpenSP::PackedBoolean OpenSP::AttributeDefinition::implicit_' [-Wreorder]
287 | PackedBoolean implicit_;
| ^~~~~~~~~
Attribute.cxx:590:1: warning: when initialized here [-Wreorder]
590 | AttributeDefinition::AttributeDefinition(const StringC &name,
| ^~~~~~~~~~~~~~~~~~~
Attribute.cxx: In member function 'void OpenSP::AttributeDefinition::setOrigName(OpenSP::StringC&)':
Attribute.cxx:609:17: warning: the compiler can assume that the address of 'origName' will never be NULL [-Waddress]
609 | if (&origName != NULL)
| ^
In file included from Attribute.cxx:8:
../include/Attribute.h: In constructor 'OpenSP::AttributeDefinitionList::AttributeDefinitionList(OpenSP::Vector >&, size_t, OpenSP::Boolean, size_t, size_t)':
../include/Attribute.h:382:11: warning: 'OpenSP::AttributeDefinitionList::anyCurrent_' will be initialized after [-Wreorder]
382 | Boolean anyCurrent_;
| ^~~~~~~~~~~
../include/Attribute.h:380:10: warning: 'size_t OpenSP::AttributeDefinitionList::idIndex_' [-Wreorder]
380 | size_t idIndex_; // -1 if no ID attribute
| ^~~~~~~~
Attribute.cxx:883:1: warning: when initialized here [-Wreorder]
883 | AttributeDefinitionList
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h: In constructor 'OpenSP::AttributeDefinitionList::AttributeDefinitionList(const OpenSP::ConstPtr&)':
../include/Attribute.h:383:37: warning: 'OpenSP::AttributeDefinitionList::prev_' will be initialized after [-Wreorder]
383 | ConstPtr prev_;
| ^~~~~
../include/Attribute.h:379:10: warning: 'size_t OpenSP::AttributeDefinitionList::index_' [-Wreorder]
379 | size_t index_;
| ^~~~~~
Attribute.cxx:895:1: warning: when initialized here [-Wreorder]
895 | AttributeDefinitionList:: AttributeDefinitionList(const ConstPtr &def)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h: In constructor 'OpenSP::AttributeList::AttributeList(const OpenSP::ConstPtr&)':
../include/Attribute.h:531:37: warning: 'OpenSP::AttributeList::def_' will be initialized after [-Wreorder]
531 | ConstPtr def_;
| ^~~~
../include/Attribute.h:530:21: warning: 'OpenSP::Vector OpenSP::AttributeList::vec_' [-Wreorder]
530 | Vector vec_;
| ^~~~
Attribute.cxx:1179:1: warning: when initialized here [-Wreorder]
1179 | AttributeList::AttributeList(const ConstPtr &def)
| ^~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h:530:21: warning: 'OpenSP::AttributeList::vec_' will be initialized after [-Wreorder]
530 | Vector vec_;
| ^~~~
../include/Attribute.h:529:10: warning: 'size_t OpenSP::AttributeList::nSpec_' [-Wreorder]
529 | size_t nSpec_;
| ^~~~~~
Attribute.cxx:1179:1: warning: when initialized here [-Wreorder]
1179 | AttributeList::AttributeList(const ConstPtr &def)
| ^~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h:529:10: warning: 'OpenSP::AttributeList::nSpec_' will be initialized after [-Wreorder]
529 | size_t nSpec_;
| ^~~~~~
../include/Attribute.h:526:17: warning: 'OpenSP::PackedBoolean OpenSP::AttributeList::conref_' [-Wreorder]
526 | PackedBoolean conref_;
| ^~~~~~~
Attribute.cxx:1179:1: warning: when initialized here [-Wreorder]
1179 | AttributeList::AttributeList(const ConstPtr &def)
| ^~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h: In constructor 'OpenSP::AttributeList::AttributeList()':
../include/Attribute.h:529:10: warning: 'OpenSP::AttributeList::nSpec_' will be initialized after [-Wreorder]
529 | size_t nSpec_;
| ^~~~~~
../include/Attribute.h:526:17: warning: 'OpenSP::PackedBoolean OpenSP::AttributeList::conref_' [-Wreorder]
526 | PackedBoolean conref_;
| ^~~~~~~
Attribute.cxx:1185:1: warning: when initialized here [-Wreorder]
1185 | AttributeList::AttributeList()
| ^~~~~~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::RangeMapRange]':
../include/RangeMap.h:27:7: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector >::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector >::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::Attribute]':
../include/Attribute.h:482:14: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::String]':
../include/Attribute.h:167:7: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector >::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector >::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::ConstPtr; size_t = unsigned int]':
Attribute.cxx:482:45: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector >::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector >::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
../include/Vector.h:25:3: warning: when initialized here [-Wreorder]
25 | Vector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); }
| ^~~~~~
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::ConstPtr]':
../include/Attribute.h:396:7: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector >::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector >::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = unsigned int]':
Attribute.cxx:1054:25: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::Attribute; size_t = unsigned int]':
Attribute.cxx:1181:31: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
../include/Vector.h:25:3: warning: when initialized here [-Wreorder]
25 | Vector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); }
| ^~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::String]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::String]'
../include/Attribute.h:57:29: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::String' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/StringC.h:8,
from ../include/Attribute.h:13,
from Attribute.cxx:8:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::Attribute]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::Attribute]'
../include/Attribute.h:486:27: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Attribute' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h:461:14: note: 'class OpenSP::Attribute' declared here
461 | class SP_API Attribute {
| ^~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::CharsetDeclRange]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::CharsetDeclRange]'
../include/CharsetDecl.h:53:25: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::CharsetDeclRange' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Sd.h:17,
from ../include/Markup.h:13,
from ../include/Entity.h:22,
from Attribute.cxx:13:
../include/CharsetDecl.h:20:14: note: 'class OpenSP::CharsetDeclRange' declared here
20 | class SP_API CharsetDeclRange {
| ^~~~~~~~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::MarkupItem]':
../include/Vector.h:29:7: required from 'void OpenSP::Vector::resize(size_t) [with T = OpenSP::MarkupItem; size_t = unsigned int]'
../include/Markup.h:125:18: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct OpenSP::MarkupItem' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Entity.h:22,
from Attribute.cxx:13:
../include/Markup.h:24:15: note: 'struct OpenSP::MarkupItem' declared here
24 | struct SP_API MarkupItem {
| ^~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, const T*, const T*) [with T = OpenSP::Attribute]':
../include/Vector.cxx:29:3: required from 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::Attribute]'
../include/Attribute.h:482:14: required from here
../include/Vector.cxx:90:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Attribute' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
90 | memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Attribute.cxx:8:
../include/Attribute.h:461:14: note: 'class OpenSP::Attribute' declared here
461 | class SP_API Attribute {
| ^~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, const T*, const T*) [with T = OpenSP::String]':
../include/Vector.cxx:46:7: required from 'OpenSP::Vector& OpenSP::Vector::operator=(const OpenSP::Vector&) [with T = OpenSP::String]'
Attribute.cxx:336:24: required from here
../include/Vector.cxx:90:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::String' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
90 | memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/StringC.h:8,
from ../include/Attribute.h:13,
from Attribute.cxx:8:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::ConstPtr]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::ConstPtr]'
Attribute.cxx:482:45: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::ConstPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/Attribute.h:17,
from Attribute.cxx:8:
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private Ptr {
| ^~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::CopyOwner]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::CopyOwner]'
Attribute.cxx:890:31: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::CopyOwner' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Attribute.h:15,
from Attribute.cxx:8:
../include/CopyOwner.h:14:7: note: 'class OpenSP::CopyOwner' declared here
14 | class CopyOwner : public Owner {
| ^~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, const T*, const T*) [with T = OpenSP::CopyOwner]':
../include/Vector.cxx:46:7: required from 'OpenSP::Vector& OpenSP::Vector::operator=(const OpenSP::Vector&) [with T = OpenSP::CopyOwner]'
Attribute.cxx:907:18: required from here
../include/Vector.cxx:90:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::CopyOwner' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
90 | memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Attribute.h:15,
from Attribute.cxx:8:
../include/CopyOwner.h:14:7: note: 'class OpenSP::CopyOwner' declared here
14 | class CopyOwner : public Owner {
| ^~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Attribute.h:14,
from Attribute.cxx:8:
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, const T*, const T*) [with T = OpenSP::ConstPtr]':
../include/Vector.cxx:29:3: required from 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::ConstPtr]'
../include/Attribute.h:396:7: required from here
../include/Vector.cxx:90:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::ConstPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
90 | memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/Attribute.h:17,
from Attribute.cxx:8:
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private Ptr {
| ^~~~~~~~
Attribute.cxx: In member function 'void OpenSP::AttributeDefinition::setOrigName(OpenSP::StringC&)':
Attribute.cxx:609:3: warning: nonnull argument 'origName' compared to NULL [-Wnonnull-compare]
609 | if (&origName != NULL)
| ^~
make[3]: Leaving directory '/usr/src/RPM/BUILD/OpenSP-1.5.2/lib'
make[3]: Entering directory '/usr/src/RPM/BUILD/OpenSP-1.5.2/lib'
/bin/sh ../libtool --tag=CXX --mode=compile i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o ElementType.lo ElementType.cxx
libtool: compile: i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c ElementType.cxx -fPIC -DPIC -o .libs/ElementType.o
In file included from ../include/Location.h:12,
from ../include/ElementType.h:14,
from ElementType.cxx:8:
../include/Ptr.h:72:3: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
72 | Ptr::isNull;
| ^~~~~~
../include/Ptr.h:73:3: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
73 | Ptr::clear;
| ^~~~~~
In file included from ElementType.cxx:8:
../include/ElementType.h: In constructor 'OpenSP::ElementType::ElementType(const StringC&, size_t)':
../include/ElementType.h:124:28: warning: 'OpenSP::ElementType::map_' will be initialized after [-Wreorder]
124 | const ShortReferenceMap *map_;
| ^~~~
../include/ElementType.h:122:10: warning: 'size_t OpenSP::ElementType::defIndex_' [-Wreorder]
122 | size_t defIndex_; // index in the group having same definition
| ^~~~~~~~~
ElementType.cxx:16:1: warning: when initialized here [-Wreorder]
16 | ElementType::ElementType(const StringC &name, size_t index)
| ^~~~~~~~~~~
In file included from ../include/ElementType.h:12,
from ElementType.cxx:8:
../include/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::LeafContentToken*; size_t = unsigned int]':
../include/ContentToken.h:61:51: required from here
../include/Vector.h:66:6: warning: 'OpenSP::Vector::ptr_' will be initialized after [-Wreorder]
66 | T *ptr_;
| ^~~~
../include/Vector.h:65:10: warning: 'size_t OpenSP::Vector::size_' [-Wreorder]
65 | size_t size_;
| ^~~~~
../include/Vector.h:25:3: warning: when initialized here [-Wreorder]
25 | Vector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); }
| ^~~~~~
In file included from ../include/Vector.h:77,
from ../include/ElementType.h:12,
from ElementType.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::String]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::String]'
../include/Attribute.h:57:29: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::String' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/StringC.h:8,
from ../include/Location.h:17,
from ../include/ElementType.h:14,
from ElementType.cxx:8:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
In file included from ../include/Vector.h:77,
from ../include/ElementType.h:12,
from ElementType.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::Attribute]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::Attribute]'
../include/Attribute.h:486:27: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Attribute' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Attributed.h:8,
from ../include/ElementType.h:18,
from ElementType.cxx:8:
../include/Attribute.h:461:14: note: 'class OpenSP::Attribute' declared here
461 | class SP_API Attribute {
| ^~~~~~~~~
In file included from ../include/NCVector.h:48,
from ../include/ContentToken.h:13,
from ../include/ElementType.h:20,
from ElementType.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::NCVector::erase(const T*, const T*) [with T = OpenSP::Owner]':
../include/Vector.cxx:18:5: required from 'OpenSP::NCVector::~NCVector() [with T = OpenSP::Owner]'
../include/ContentToken.h:123:32: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::Owner' with no trivial copy-assignment [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/ElementType.h:13,
from ElementType.cxx:8:
../include/Owner.h:16:7: note: 'class OpenSP::Owner' declared here
16 | class Owner {
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/ElementType.h:12,
from ElementType.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::Transition]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::Transition]'
../include/ContentToken.h:187:13: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'struct OpenSP::Transition'; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/ElementType.h:20,
from ElementType.cxx:8:
../include/ContentToken.h:22:15: note: 'struct OpenSP::Transition' declared here
22 | struct SP_API Transition {
| ^~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/ElementType.h:12,
from ElementType.cxx:8:
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::ConstPtr]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::ConstPtr]'
ElementType.cxx:102:28: required from here
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::ConstPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:12,
from ../include/ElementType.h:14,
from ElementType.cxx:8:
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private Ptr