$ g++ --version
g++ (Ubuntu 11.2.0-7ubuntu2) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
In compilation of Reader.cc:
g++ -Werror -O3 -DPUT_TIME__SUPPORTED -DADVANCED_REGEX_FUNCTIONS -DALURAND_rand48 -I/usr/include/python3.9 -I/usr/include/python3.9 -Wno-unused-result -Wsign-compare -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -fwrapv -Wall -Wno-deprecated-register -fPIC -DPYTHON_VER_3 -DGITTAG=v0.9-alpha --std=c++11 -I . -c -o processing/Reader.o processing/Reader.cc
processing/Reader.cc: In constructor ‘multiReader::multiReader(PReader)’:
processing/Reader.cc:304:15: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘PReader’ {aka ‘class std::shared_ptr<Reader>’} with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
304 | memset(readerArray, 0, sizeof(readerArray));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:77,
from processing/Reader.h:5,
from processing/Reader.cc:4:
/usr/include/c++/11/bits/shared_ptr.h:122:11: note: ‘PReader’ {aka ‘class std::shared_ptr<Reader>’} declared here
122 | class shared_ptr : public __shared_ptr<_Tp>
| ^~~~~~~~~~
processing/Reader.cc:305:15: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘PSpecString’ {aka ‘class std::shared_ptr<std::__cxx11::basic_string<char> >’} with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
305 | memset(stringArray, 0, sizeof(stringArray));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:77,
from processing/Reader.h:5,
from processing/Reader.cc:4:
/usr/include/c++/11/bits/shared_ptr.h:122:11: note: ‘PSpecString’ {aka ‘class std::shared_ptr<std::__cxx11::basic_string<char> >’} declared here
122 | class shared_ptr : public __shared_ptr<_Tp>
| ^~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-deprecated-register’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
make: *** [<builtin>: processing/Reader.o] Error 1
g++:
In compilation of Reader.cc: