; 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 CharsetInfo.lo CharsetInfo.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 CharsetInfo.cxx -fPIC -DPIC -o .libs/CharsetInfo.o
In file included from ../include/RangeMap.h:7,
from ../include/UnivCharsetDesc.h:14,
from ../include/CharsetInfo.h:11,
from CharsetInfo.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
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)
| ^~~~~~~~~
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 EntityCatalog.lo EntityCatalog.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 EntityCatalog.cxx -fPIC -DPIC -o .libs/EntityCatalog.o
In file included from ../include/EntityDecl.h:12,
from EntityCatalog.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;
| ^~~~~~
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 CharsetDecl.lo CharsetDecl.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 CharsetDecl.cxx -fPIC -DPIC -o .libs/CharsetDecl.o
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/ExternalId.h:12,
from ../include/CharsetDecl.h:12,
from CharsetDecl.cxx:8:
../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;
| ^~~~~~
../include/CharsetDecl.h: In constructor 'OpenSP::CharsetDeclRange::CharsetDeclRange(OpenSP::WideChar, OpenSP::Number, OpenSP::WideChar)':
../include/CharsetDecl.h:46:8: warning: 'OpenSP::CharsetDeclRange::type_' will be initialized after [-Wreorder]
46 | Type type_;
| ^~~~~
../include/CharsetDecl.h:45:12: warning: 'OpenSP::WideChar OpenSP::CharsetDeclRange::baseMin_' [-Wreorder]
45 | WideChar baseMin_;
| ^~~~~~~~
CharsetDecl.cxx:25:1: warning: when initialized here [-Wreorder]
25 | CharsetDeclRange::CharsetDeclRange(WideChar descMin, Number count,
| ^~~~~~~~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/CharsetDecl.h:11:
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/CharsetDecl.h:53:25: required from here
53 | ~CharsetDeclSection() {}
| ^
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/CharsetDecl.h:20:14: note: 'class OpenSP::CharsetDeclRange' declared here
20 | class SP_API CharsetDeclRange {
| ^~~~~~~~~~~~~~~~
../include/Vector.cxx: In instantiation of 'void OpenSP::Vector::insert(const T*, const T*, const T*) [with T = OpenSP::TextItem]':
../include/Vector.cxx:46:13: required from 'OpenSP::Vector& OpenSP::Vector::operator=(const OpenSP::Vector&) [with T = OpenSP::TextItem]'
46 | insert(ptr_ + size_, v.ptr_ + size_, v.ptr_ + v.size_);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Text.h:55:14: required from here
55 | class SP_API Text {
| ^~~~
../include/Vector.cxx:90:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct OpenSP::TextItem' 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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Text.h:21:15: note: 'struct OpenSP::TextItem' declared here
21 | struct SP_API TextItem {
| ^~~~~~~~
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::TextItem]':
../include/Vector.cxx:49:7: required from 'OpenSP::Vector& OpenSP::Vector::operator=(const OpenSP::Vector&) [with T = OpenSP::TextItem]'
49 | erase(ptr_ + n, ptr_ + size_);
| ^~~~~
../include/Text.h:55:14: required from here
55 | class SP_API Text {
| ^~~~
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'struct OpenSP::TextItem' 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/Text.h:21:15: note: 'struct OpenSP::TextItem' declared here
21 | struct SP_API TextItem {
| ^~~~~~~~
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::CharsetDeclSection]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::CharsetDeclSection]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
CharsetDecl.cxx:183:26: required from here
183 | CharsetDecl::CharsetDecl()
| ^
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class OpenSP::CharsetDeclSection' 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/CharsetDecl.h:50:14: note: 'class OpenSP::CharsetDeclSection' declared here
50 | class SP_API CharsetDeclSection {
| ^~~~~~~~~~~~~~~~~~
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 EntityDecl.lo EntityDecl.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 EntityDecl.cxx -fPIC -DPIC -o .libs/EntityDecl.o
In file included from ../include/EntityDecl.h:12,
from EntityDecl.cxx:8:
../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;
| ^~~~~~
../include/EntityDecl.h: In constructor 'OpenSP::EntityDecl::EntityDecl(const OpenSP::StringC&, DeclType, DataType, const OpenSP::Location&)':
../include/EntityDecl.h:50:12: warning: 'OpenSP::EntityDecl::defLocation_' will be initialized after [-Wreorder]
50 | Location defLocation_;
| ^~~~~~~~~~~~
../include/EntityDecl.h:48:17: warning: 'OpenSP::PackedBoolean OpenSP::EntityDecl::dtdIsBase_' [-Wreorder]
48 | PackedBoolean dtdIsBase_;
| ^~~~~~~~~~
EntityDecl.cxx:14:1: warning: when initialized here [-Wreorder]
14 | EntityDecl::EntityDecl(const StringC &str, DeclType declType, DataType dataType,
| ^~~~~~~~~~
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 CharsetRegistry.lo CharsetRegistry.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 CharsetRegistry.cxx -fPIC -DPIC -o .libs/CharsetRegistry.o
CharsetRegistry.cxx: In member function 'virtual OpenSP::Boolean OpenSP::CharsetRegistryDescIter::next(OpenSP::WideChar&, OpenSP::WideChar&, OpenSP::UnivChar&)':
CharsetRegistry.cxx:56:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (; i < n_; i++)
| ~~^~~~
In file included from ../include/RangeMap.h:7,
from ../include/UnivCharsetDesc.h:14,
from ../include/CharsetInfo.h:11,
from ../include/CharsetRegistry.h:13,
from CharsetRegistry.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
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)
| ^~~~~~~~~
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 EntityManager.lo EntityManager.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 EntityManager.cxx -fPIC -DPIC -o .libs/EntityManager.o
In file included from ../include/EntityManager.h:15,
from EntityManager.cxx:8:
../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;
| ^~~~~~
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 ErrnoMessageArg.lo ErrnoMessageArg.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 ErrnoMessageArg.cxx -fPIC -DPIC -o .libs/ErrnoMessageArg.o
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 ElementType.lo ElementType.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 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 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;
| ^~~~~~
../include/ElementType.h: In constructor 'OpenSP::ElementType::ElementType(const OpenSP::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:
../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); }
| ^~~~~~
In file included from ../include/Vector.h:77:
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/Attribute.h:57:29: required from here
57 | AttributeDefinitionDesc() { }
| ^
../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:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/Attribute.h:486:27: required from here
486 | inline ~AttributeList() {}
| ^
../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:
../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:
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/ContentToken.h:123:32: required from here
123 | inline virtual ~ModelGroup() {};
| ^
../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:
../include/Owner.h:16:7: note: 'class OpenSP::Owner' declared here
16 | class Owner {
| ^~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/ContentToken.h:187:13: required from here
187 | AndInfo() { }
| ^
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ContentToken.h:22:15: note: 'struct OpenSP::Transition' declared here
22 | struct SP_API Transition {
| ^~~~~~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
ElementType.cxx:102:28: required from here
102 | : Named(name), index_(index)
| ^
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private 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 EventGenerator.lo EventGenerator.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 EventGenerator.cxx -fPIC -DPIC -o .libs/EventGenerator.o
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 CodingSystemKit.lo CodingSystemKit.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 CodingSystemKit.cxx -fPIC -DPIC -o .libs/CodingSystemKit.o
In file included from ../include/TranslateCodingSystem.h:8,
from CodingSystemKit.cxx:10:
../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;
| ^~~~~~
CodingSystemKit.cxx: In constructor 'OpenSP::CodingSystemKitImpl::CodingSystemKitImpl(const OpenSP::TranslateCodingSystem::Desc*)':
CodingSystemKit.cxx:129:38: warning: 'OpenSP::CodingSystemKitImpl::systemCharsetDesc_' will be initialized after [-Wreorder]
129 | const TranslateCodingSystem::Desc *systemCharsetDesc_;
| ^~~~~~~~~~~~~~~~~~
CodingSystemKit.cxx:103:19: warning: 'OpenSP::XMLCodingSystem OpenSP::CodingSystemKitImpl::xmlCodingSystem_' [-Wreorder]
103 | XMLCodingSystem xmlCodingSystem_;
| ^~~~~~~~~~~~~~~~
CodingSystemKit.cxx:329:1: warning: when initialized here [-Wreorder]
329 | CodingSystemKitImpl::CodingSystemKitImpl(const TranslateCodingSystem::Desc *systemCharsetDesc)
| ^~~~~~~~~~~~~~~~~~~
CodingSystemKit.cxx:121:25: warning: 'OpenSP::CodingSystemKitImpl::koi8_rCodingSystem_' will be initialized after [-Wreorder]
121 | TranslateCodingSystem koi8_rCodingSystem_;
| ^~~~~~~~~~~~~~~~~~~
CodingSystemKit.cxx:107:25: warning: 'OpenSP::TranslateCodingSystem OpenSP::CodingSystemKitImpl::eucjpCodingSystem_' [-Wreorder]
107 | TranslateCodingSystem eucjpCodingSystem_;
| ^~~~~~~~~~~~~~~~~~
CodingSystemKit.cxx:329:1: warning: when initialized here [-Wreorder]
329 | CodingSystemKitImpl::CodingSystemKitImpl(const TranslateCodingSystem::Desc *systemCharsetDesc)
| ^~~~~~~~~~~~~~~~~~~
In file included from ../include/RangeMap.h:7,
from ../include/UnivCharsetDesc.h:14,
from ../include/CharsetInfo.h:11,
from ../include/CodingSystemKit.h:15,
from CodingSystemKit.cxx:9:
../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)
| ^~~~~~~~~
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 CmdLineApp.lo CmdLineApp.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 CmdLineApp.cxx -fPIC -DPIC -o .libs/CmdLineApp.o
In file included from ../include/Location.h:12,
from ../include/Message.h:12,
from ../include/MessageFormatter.h:14,
from ../include/MessageReporter.h:12,
from ../include/CmdLineApp.h:17,
from CmdLineApp.cxx:12:
../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;
| ^~~~~~
../include/CmdLineApp.h: In constructor 'OpenSP::CmdLineApp::CmdLineApp(const char*)':
../include/CmdLineApp.h:74:23: warning: 'OpenSP::CmdLineApp::outputCodingSystem_' will be initialized after [-Wreorder]
74 | const CodingSystem *outputCodingSystem_;
| ^~~~~~~~~~~~~~~~~~~
CmdLineApp.cxx:81:23: warning: base 'OpenSP::MessageReporter' [-Wreorder]
81 | action_(normalAction)
| ^
CmdLineApp.cxx:75:1: warning: when initialized here [-Wreorder]
75 | CmdLineApp::CmdLineApp(const char *requiredInternalCode)
| ^~~~~~~~~~
../include/CmdLineApp.h:92:23: warning: 'OpenSP::CmdLineApp::codingSystem_' will be initialized after [-Wreorder]
92 | const CodingSystem *codingSystem_;
| ^~~~~~~~~~~~~
../include/CmdLineApp.h:87:7: warning: 'int OpenSP::CmdLineApp::action_' [-Wreorder]
87 | int action_;
| ^~~~~~~
CmdLineApp.cxx:75:1: warning: when initialized here [-Wreorder]
75 | CmdLineApp::CmdLineApp(const char *requiredInternalCode)
| ^~~~~~~~~~
In file included from splib.h:7,
from CmdLineApp.cxx:11:
CmdLineApp.cxx: In member function 'virtual int OpenSP::CmdLineApp::init(int, AppChar**)':
../config.h:393:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
393 | #define SP_MESSAGE_DOMAIN "sp5"
| ^~~~~
CmdLineApp.cxx:327:51: note: in expansion of macro 'SP_MESSAGE_DOMAIN'
327 | SP_MESSAGE_DOMAIN,
| ^~~~~~~~~~~~~~~~~
../config.h:387:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
387 | #define SP_LOCALE_DIR "/usr/share/locale"
| ^~~~~~~~~~~~~~~~~~~
CmdLineApp.cxx:328:51: note: in expansion of macro 'SP_LOCALE_DIR'
328 | SP_LOCALE_DIR);
| ^~~~~~~~~~~~~
../config.h:393:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
393 | #define SP_MESSAGE_DOMAIN "sp5"
| ^~~~~
CmdLineApp.cxx:330:51: note: in expansion of macro 'SP_MESSAGE_DOMAIN'
330 | SP_MESSAGE_DOMAIN,
| ^~~~~~~~~~~~~~~~~
../config.h:387:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
387 | #define SP_LOCALE_DIR "/usr/share/locale"
| ^~~~~~~~~~~~~~~~~~~
CmdLineApp.cxx:331:51: note: in expansion of macro 'SP_LOCALE_DIR'
331 | SP_LOCALE_DIR);
| ^~~~~~~~~~~~~
CmdLineApp.cxx: In member function 'int OpenSP::CmdLineApp::run(int, AppChar**)':
CmdLineApp.cxx:365:13: warning: catching polymorphic type 'class std::bad_alloc' by value [-Wcatch-value=]
365 | bad_alloc) {
| ^~~~~~~~~
In file included from ../include/Location.h:15:
../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)
| ^~~~~~~~~
../include/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::CopyOwner; size_t = long unsigned int]':
CmdLineApp.cxx:199:40: required from here
199 | Vector > args(1);
| ^
../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/CmdLineApp.h:25:
../include/Options.cxx: In instantiation of 'OpenSP::Options::Options(int, T* const*, const OpenSP::Vector >&) [with T = char]':
CmdLineApp.cxx:379:45: required from here
379 | Options options(argc, argv, opts_);
| ^
../include/Options.h:41:7: warning: 'OpenSP::Options::argc_' will be initialized after [-Wreorder]
41 | int argc_;
| ^~~~~
../include/Options.h:40:13: warning: 'char* const* OpenSP::Options::argv_' [-Wreorder]
40 | T *const *argv_;
| ^~~~~
In file included from ../include/Options.h:57:
../include/Options.cxx:15:1: warning: when initialized here [-Wreorder]
15 | Options::Options(int argc, T *const *argv, const Vector > &l)
| ^~~~~~~~~~
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::MessageType1]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::MessageType1]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
CmdLineApp.cxx:81:23: required from here
81 | action_(normalAction)
| ^
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class OpenSP::MessageType1'; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Message.h:90:14: note: 'class OpenSP::MessageType1' declared here
90 | class SP_API MessageType1 : public MessageType {
| ^~~~~~~~~~~~
../include/Vector.cxx: In instantiation of 'T* OpenSP::Vector::erase(const T*, const T*) [with T = OpenSP::MessageFragment]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::MessageFragment]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
CmdLineApp.cxx:81:23: required from here
81 | action_(normalAction)
| ^
../include/Vector.cxx:134:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class OpenSP::MessageFragment'; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
134 | memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Message.h:33:14: note: 'class OpenSP::MessageFragment' declared here
33 | class SP_API MessageFragment {
| ^~~~~~~~~~~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
CmdLineApp.cxx:199:40: required from here
199 | Vector > args(1);
| ^
../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/Message.h:14:
../include/CopyOwner.h:14:7: note: 'class OpenSP::CopyOwner' declared here
14 | class CopyOwner : public Owner {
| ^~~~~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
CmdLineApp.cxx:222:19: required from here
222 | Vector leftSide;
| ^~~~~~~~
../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:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::LongOption]':
../include/Options.cxx:16:46: required from 'OpenSP::Options::Options(int, T* const*, const OpenSP::Vector >&) [with T = char]'
16 | : argc_(argc), argv_(argv), ind_(1), sp_(1), opts_(l), optInd_(-1)
| ^~~~~~~~
CmdLineApp.cxx:379:45: required from here
379 | Options options(argc, argv, opts_);
| ^
../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:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
../include/Options.cxx: In instantiation of 'bool OpenSP::Options::search(T) [with T = char]':
../include/Options.cxx:99:8: required from 'bool OpenSP::Options::get(T&) [with T = char]'
99 | if (!search(c)) {
| ^~~~~~
CmdLineApp.cxx:381:21: required from here
381 | while (options.get(opt)) {
| ~~~~~~~~~~~^~~~~
../include/Options.cxx:23:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (optInd_ = 0; optInd_ < opts_.size(); optInd_++)
| ~~~~~~~~^~~~~~~~~~~~~~
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 ErrorCountEventHandler.lo ErrorCountEventHandler.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 ErrorCountEventHandler.cxx -fPIC -DPIC -o .libs/ErrorCountEventHandler.o
In file included from ../include/Location.h:12,
from ../include/Event.h:12,
from ../include/ErrorCountEventHandler.h:12,
from ErrorCountEventHandler.cxx:8:
../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/Sd.h:16,
from ../include/Event.h:20:
../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]));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
../include/ErrorCountEventHandler.h: In constructor 'OpenSP::ErrorCountEventHandler::ErrorCountEventHandler(unsigned int)':
../include/ErrorCountEventHandler.h:30:12: warning: 'OpenSP::ErrorCountEventHandler::errorCount_' will be initialized after [-Wreorder]
30 | unsigned errorCount_;
| ^~~~~~~~~~~
../include/ErrorCountEventHandler.h:29:12: warning: 'unsigned int OpenSP::ErrorCountEventHandler::maxErrors_' [-Wreorder]
29 | unsigned maxErrors_;
| ^~~~~~~~~~
ErrorCountEventHandler.cxx:14:1: warning: when initialized here [-Wreorder]
14 | ErrorCountEventHandler::ErrorCountEventHandler(unsigned errorLimit)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/Location.h:15:
../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)
| ^~~~~~~~~
../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 '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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/Attribute.h:57:29: required from here
57 | AttributeDefinitionDesc() { }
| ^
../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:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/Attribute.h:486:27: required from here
486 | inline ~AttributeList() {}
| ^
../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/Notation.h:17,
from ../include/Event.h:19:
../include/Attribute.h:461:14: note: 'class OpenSP::Attribute' declared here
461 | class SP_API Attribute {
| ^~~~~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/CharsetDecl.h:53:25: required from here
53 | ~CharsetDeclSection() {}
| ^
../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:
../include/CharsetDecl.h:20:14: note: 'class OpenSP::CharsetDeclRange' declared here
20 | class SP_API CharsetDeclRange {
| ^~~~~~~~~~~~~~~~
In file included from ../include/NCVector.h:48,
from ../include/ContentToken.h:13,
from ../include/ElementType.h:20,
from ../include/Dtd.h:12,
from ../include/Event.h:22:
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/ContentToken.h:123:32: required from here
123 | inline virtual ~ModelGroup() {};
| ^
../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/Location.h:16:
../include/Owner.h:16:7: note: 'class OpenSP::Owner' declared here
16 | class Owner {
| ^~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/ContentToken.h:187:13: required from here
187 | AndInfo() { }
| ^
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ContentToken.h:22:15: note: 'struct OpenSP::Transition' declared here
22 | struct SP_API Transition {
| ^~~~~~~~~~
../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 = long unsigned int]'
29 | erase(ptr_ + n, ptr_ + size_);
| ^~~~~
../include/Markup.h:125:16: required from here
125 | items_.resize(0);
| ~~~~~~~~~~~~~^~~
../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 ../include/Dtd.h:14:
../include/Markup.h:24:15: note: 'struct OpenSP::MarkupItem' declared here
24 | struct SP_API MarkupItem {
| ^~~~~~~~~~
../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]'
18 | erase(ptr_, ptr_ + size_);
| ^~~~~
../include/ShortReferenceMap.h:26:31: required from here
26 | inline ~ShortReferenceMap() {}
| ^
../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));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private Ptr {
| ^~~~~~~~
../include/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(size_t, const T&) [with T = OpenSP::Ptr; 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