; size_t = long 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]'
56 | Vector oldVec(vec_.size()*2, P(0));
| ^~~~~~
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
37 | return (T *)table_.insert((NamedResource *)p.pointer(), replace).pointer();
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Dtd.h:165:35: required from here
162 | return ((entity->declType() == Entity::parameterEntity
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 | || entity->declType() == Entity::doctype)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 | ? ¶meterEntityTable_
| ~~~~~~~~~~~~~~~~~~~~~~~~
165 | : &generalEntityTable_)->insert(entity, replace);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../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.cxx:33:1: warning: when initialized here [-Wreorder]
33 | Vector::Vector(size_t n, const T &t)
| ^~~~~~~~~
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(size_t, const T&) [with T = OpenSP::Named*; size_t = long 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]'
56 | Vector oldVec(vec_.size()*2, P(0));
| ^~~~~~
../include/NamedTable.h:28:40: required from 'T* OpenSP::NamedTable::insert(T*) [with T = OpenSP::ElementType]'
28 | T *insert(T *p) { return (T *)table_.insert(p); }
| ~~~~~~~^~~~~~
../include/Dtd.h:279:34: required from here
279 | return elementTypeTable_.insert(e);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~
../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.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 = long unsigned int]':
../include/Vector.cxx:62:11: required from 'void OpenSP::Vector::assign(size_t, const T&) [with T = OpenSP::Ptr; size_t = long unsigned int]'
62 | insert(ptr_ + size_, n - size_, t);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/PointerTable.cxx:32:16: 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]'
32 | vec_.assign(8, P(0));
| ~~~~~~~~~~~^~~~~~~~~
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
37 | return (T *)table_.insert((NamedResource *)p.pointer(), replace).pointer();
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Dtd.h:165:35: required from here
162 | return ((entity->declType() == Entity::parameterEntity
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 | || entity->declType() == Entity::doctype)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 | ? ¶meterEntityTable_
| ~~~~~~~~~~~~~~~~~~~~~~~~
165 | : &generalEntityTable_)->insert(entity, replace);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Ptr.h:17:7: note: 'class OpenSP::Ptr' declared here
17 | class Ptr {
| ^~~
../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 = long unsigned int]'
65 | erase(ptr_ + n, ptr_ + size_);
| ^~~~~
../include/PointerTable.cxx:32:16: 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]'
32 | vec_.assign(8, P(0));
| ~~~~~~~~~~~^~~~~~~~~
../include/NamedResourceTable.h:37:30: required from 'OpenSP::Ptr OpenSP::NamedResourceTable::insert(const OpenSP::Ptr&, OpenSP::Boolean) [with T = OpenSP::Entity; OpenSP::Boolean = bool]'
37 | return (T *)table_.insert((NamedResource *)p.pointer(), replace).pointer();
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Dtd.h:165:35: required from here
162 | return ((entity->declType() == Entity::parameterEntity
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 | || entity->declType() == Entity::doctype)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164 | ? ¶meterEntityTable_
| ~~~~~~~~~~~~~~~~~~~~~~~~
165 | : &generalEntityTable_)->insert(entity, replace);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../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 x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o ContentState.lo ContentState.cxx
libtool: compile: x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../generic -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c ContentState.cxx -fPIC -DPIC -o .libs/ContentState.o
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/ContentToken.h:11,
from ../include/OpenElement.h:11,
from ../include/ContentState.h:12,
from ContentState.cxx:9:
../include/Ptr.h:72:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
72 | Ptr::isNull;
| ^~~~~~
../include/Ptr.h:73:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
73 | Ptr::clear;
| ^~~~~~
In file included from ../include/ContentState.h:13:
../include/IList.h:29:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
29 | IListBase::clear;
| ^~~~~~~~~
../include/IList.h:30:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
30 | IListBase::empty;
| ^~~~~~~~~
In file included from ../include/Markup.h:12,
from ../include/Entity.h:22,
from ../include/Dtd.h:14,
from ../include/ContentState.h:16:
../include/Syntax.h: In member function 'OpenSP::Boolean OpenSP::Syntax::isB(OpenSP::Xchar) const':
../include/Syntax.h:382:49: warning: comparison of integer expressions of different signedness: 'OpenSP::Xchar' {aka 'int'} and 'const OpenSP::Char' {aka 'const unsigned int'} [-Wsign-compare]
382 | && !(standardFunctionValid_[fRE] && c == standardFunction_[fRE])
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
../include/Syntax.h:383:49: warning: comparison of integer expressions of different signedness: 'OpenSP::Xchar' {aka 'int'} and 'const OpenSP::Char' {aka 'const unsigned int'} [-Wsign-compare]
383 | && !(standardFunctionValid_[fRS] && c == standardFunction_[fRS]));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ContentState.cxx:10:
../include/IListIter.h: At global scope:
../include/IListIter.h:20:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
20 | IListIterBase::next;
| ^~~~~~~~~~~~~
../include/IListIter.h:21:3: warning: access declarations are deprecated in favor of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
21 | IListIterBase::done;
| ^~~~~~~~~~~~~
In file included from ../include/Text.h:12:
../include/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::LeafContentToken*; size_t = long unsigned int]':
../include/ContentToken.h:61:51: required from here
61 | LastSet(size_t n) : Vector(n) { }
| ^
../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::RangeMapRange]':
../include/RangeMap.h:27:7: required from here
27 | class RangeMap {
| ^~~~~~~~
../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:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/NCVector.h:12,
from ../include/ContentToken.h:13:
../include/Vector.h: In instantiation of 'OpenSP::NCVector::NCVector(size_t) [with T = OpenSP::Owner; size_t = long unsigned int]':
ContentState.cxx:31:42: required from here
31 | NCVector