; 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/Text.h:12,
from ../include/ContentToken.h:11,
from ../include/OpenElement.h:11,
from ../include/ContentState.h:12,
from ContentState.cxx:9:
../include/Vector.cxx:33:1: warning: when initialized here [-Wreorder]
33 | Vector::Vector(size_t n, const T &t)
| ^~~~~~~~~
In file included from ../include/Text.h:12,
from ../include/ContentToken.h:11,
from ../include/OpenElement.h:11,
from ../include/ContentState.h:12,
from ContentState.cxx:9:
../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/Text.h:12,
from ../include/ContentToken.h:11,
from ../include/OpenElement.h:11,
from ../include/ContentState.h:12,
from ContentState.cxx:9:
../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/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:17:7: note: 'class OpenSP::Ptr' declared here
17 | class Ptr {
| ^~~
In file included from ../include/Vector.h:77,
from ../include/Text.h:12,
from ../include/ContentToken.h:11,
from ../include/OpenElement.h:11,
from ../include/ContentState.h:12,
from ContentState.cxx:9:
../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/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: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 EUCJPCodingSystem.lo EUCJPCodingSystem.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 EUCJPCodingSystem.cxx -fPIC -DPIC -o .libs/EUCJPCodingSystem.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 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 CmdLineApp.lo CmdLineApp.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 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 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 CmdLineApp.cxx:12:
../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)
| ^~~~~~~~~~
In file included from CmdLineApp.cxx:12:
../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, OpenSP::CmdLineApp::AppChar**)':
../config.h:399:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
399 | #define SP_MESSAGE_DOMAIN "sp5"
| ^~~~~
CmdLineApp.cxx:327:51: note: in expansion of macro 'SP_MESSAGE_DOMAIN'
327 | SP_MESSAGE_DOMAIN,
| ^~~~~~~~~~~~~~~~~
../config.h:393:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
393 | #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:399:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
399 | #define SP_MESSAGE_DOMAIN "sp5"
| ^~~~~
CmdLineApp.cxx:330:51: note: in expansion of macro 'SP_MESSAGE_DOMAIN'
330 | SP_MESSAGE_DOMAIN,
| ^~~~~~~~~~~~~~~~~
../config.h:393:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
393 | #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, OpenSP::CmdLineApp::AppChar**)':
CmdLineApp.cxx:365:6: warning: catching polymorphic type 'class std::bad_alloc' by value [-Wcatch-value=]
365 | bad_alloc) {
| ^~~~~~~~~
In file included from ../include/Location.h:15,
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/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/Location.h:15,
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/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Location.h:15,
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/Vector.h: In instantiation of 'OpenSP::Vector::Vector(size_t) [with T = OpenSP::CopyOwner; size_t = unsigned int]':
CmdLineApp.cxx:199:40: 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/CmdLineApp.h:25,
from CmdLineApp.cxx:12:
../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
../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,
from ../include/CmdLineApp.h:25,
from CmdLineApp.cxx:12:
../include/Options.cxx:15:1: warning: when initialized here [-Wreorder]
15 | Options::Options(int argc, T *const *argv, const Vector > &l)
| ^~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
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/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]'
CmdLineApp.cxx:81:23: 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 'class OpenSP::MessageType1'; 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/MessageFormatter.h:14,
from ../include/MessageReporter.h:12,
from ../include/CmdLineApp.h:17,
from CmdLineApp.cxx:12:
../include/Message.h:90:14: note: 'class OpenSP::MessageType1' declared here
90 | class SP_API MessageType1 : public MessageType {
| ^~~~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
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/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]'
CmdLineApp.cxx:81:23: 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 'class OpenSP::MessageFragment'; 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/MessageFormatter.h:14,
from ../include/MessageReporter.h:12,
from ../include/CmdLineApp.h:17,
from CmdLineApp.cxx:12:
../include/Message.h:33:14: note: 'class OpenSP::MessageFragment' declared here
33 | class SP_API MessageFragment {
| ^~~~~~~~~~~~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
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/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]'
CmdLineApp.cxx:199:40: 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/Message.h:14,
from ../include/MessageFormatter.h:14,
from ../include/MessageReporter.h:12,
from ../include/CmdLineApp.h:17,
from CmdLineApp.cxx:12:
../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/Location.h:15,
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/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]'
CmdLineApp.cxx:222:19: 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/Message.h:12,
from ../include/MessageFormatter.h:14,
from ../include/MessageReporter.h:12,
from ../include/CmdLineApp.h:17,
from CmdLineApp.cxx:12:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
In file included from ../include/Location.h:15,
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/Vector.cxx: In instantiation of 'OpenSP::Vector::Vector(const OpenSP::Vector&) [with T = OpenSP::LongOption]':
../include/Options.cxx:16:66: required from 'OpenSP::Options::Options(int, T* const*, const OpenSP::Vector >&) [with T = char]'
CmdLineApp.cxx:379: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_;
| ^~~~~
In file included from ../include/Vector.h:77,
from ../include/Location.h:15,
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/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Options.h:57,
from ../include/CmdLineApp.h:25,
from CmdLineApp.cxx:12:
../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]'
CmdLineApp.cxx:381:25: required from here
../include/Options.cxx:23:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka '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 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 DtdDeclEventHandler.lo DtdDeclEventHandler.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 DtdDeclEventHandler.cxx -fPIC -DPIC -o .libs/DtdDeclEventHandler.o
In file included from ../include/Location.h:12,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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 ../include/Sd.h:16,
from ../include/Event.h:20,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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 ../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(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/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Vector.cxx:26:1: warning: when initialized here [-Wreorder]
26 | Vector::Vector(const Vector &v)
| ^~~~~~~~~
In file included from ../include/Location.h:15,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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/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::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/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/StringOf.h:23:7: note: 'class OpenSP::String' declared here
23 | class String {
| ^~~~~~
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::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/Notation.h:17,
from ../include/Event.h:19,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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/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::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/Event.h:20,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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/Location.h:16,
from ../include/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Owner.h:16:7: note: 'class OpenSP::Owner' declared here
16 | class Owner {
| ^~~~~
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::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 ../include/Dtd.h:12,
from ../include/Event.h:22,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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/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::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 ../include/Dtd.h:14,
from ../include/Event.h:22,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../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/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::ConstPtr]':
../include/Vector.cxx:18:5: required from 'OpenSP::Vector::~Vector() [with T = OpenSP::ConstPtr]'
../include/ShortReferenceMap.h:26: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::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/Event.h:12,
from DtdDeclEventHandler.h:8,
from DtdDeclEventHandler.cxx:5:
../include/Ptr.h:53:7: note: 'class OpenSP::ConstPtr' declared here
53 | class ConstPtr : private Ptr {
| ^~~~~~~~
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::Ptr; 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 ContentToken.lo ContentToken.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 ContentToken.cxx -fPIC -DPIC -o .libs/ContentToken.o
In file included from ../include/Location.h:12,
from ../include/Text.h:13,
from ../include/ContentToken.h:11,
from ContentToken.cxx:9:
../include/Ptr.h:72:3: warning: access declarations are deprecated in favour of using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
72 | Ptr