D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/lzmalib-0.0.1-14.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tdfpJ3 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xOfrYK + umask 022 + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + rm -rf lzmalib-0.0.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/lzmalib-0.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd lzmalib-0.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (lzmalib-0.0.1-format_not_a_string_literal_and_no_format_arguments.diff):' Patch #0 (lzmalib-0.0.1-format_not_a_string_literal_and_no_format_arguments.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file 7zip/Compress/LZMA_Alone/LzmaBench.cpp + echo 'Patch #1 (lzmalib-0.0.1-new_libname_fix.diff):' Patch #1 (lzmalib-0.0.1-new_libname_fix.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.in patching file Makefile.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WPIucm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd lzmalib-0.0.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + rm configure + autoconf configure.in:77: warning: AC_OUTPUT should be used without arguments. configure.in:77: You should run autoupdate. + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking for main in -lc... yes checking for main in -lm... yes checking for main in -lstdc++... yes configure: creating ./config.status config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char' 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char' 'LDFLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L.' gcc -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA_Alone/LzmaRamDecode.c g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZ/LZOutWindow.cpp gcc -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/Branch/BranchX86.c g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Common/StreamUtils.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZ/LZInWindow.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/Alloc.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Common/OutBuffer.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/RangeCoder/RangeCoderBit.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Common/InBuffer.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/CRC.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/String.cpp In file included from ./Common/String.h:9, from ./Common/String.cpp:11: ./Common/Vector.h: In member function 'int CObjectVector::Find(const T&) const': ./Common/Vector.h:161:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 161 | for(int i = 0; i < Size(); i++) | ^~~ ./Common/Vector.h:164:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 164 | return -1; | ^~~~~~ ./Common/String.h: In member function 'int CStringBase::FindOneOf(const CStringBase&) const': ./Common/String.h:417:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 417 | for(int i = 0; i < _length; i++) | ^~~ ./Common/String.h:420:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 420 | return -1; | ^~~~~~ ./Common/String.h: In member function 'CStringBase CStringBase::GetTrimDefaultCharSet()': ./Common/String.h:434:58: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div] 434 | for(int i = 0; i < (int)(sizeof(kTrimDefaultCharSet) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 435 | sizeof(kTrimDefaultCharSet[0])); i++) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:15:20: note: first 'sizeof' operand was declared here 15 | static const char *kTrimDefaultCharSet = " \n\t"; | ^~~~~~~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/StringToInt.cpp g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/C_FileIO.cpp gcc -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char lzmacmd.c g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char mylib.cpp In file included from ./Common/String.h:9, from ./Common/CommandLineParser.h:6, from mylib.cpp:5: ./Common/Vector.h: In member function 'int CObjectVector::Find(const T&) const': ./Common/Vector.h:161:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 161 | for(int i = 0; i < Size(); i++) | ^~~ ./Common/Vector.h:164:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 164 | return -1; | ^~~~~~ ./Common/String.h: In member function 'int CStringBase::FindOneOf(const CStringBase&) const': ./Common/String.h:417:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 417 | for(int i = 0; i < _length; i++) | ^~~ ./Common/String.h:420:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 420 | return -1; | ^~~~~~ ./Common/String.h: In member function 'CStringBase CStringBase::GetTrimDefaultCharSet()': ./Common/String.h:434:58: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div] 434 | for(int i = 0; i < (int)(sizeof(kTrimDefaultCharSet) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 435 | sizeof(kTrimDefaultCharSet[0])); i++) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:15:20: note: first 'sizeof' operand was declared here 15 | static const char *kTrimDefaultCharSet = " \n\t"; | ^~~~~~~~~~~~~~~~~~~ In file included from ./7zip/Common/FileStreams.h:13, from mylib.cpp:8: ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CInFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:177:33: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 177 | #define MY_UNKNOWN_IMP2(i1, i2) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:36:3: note: in expansion of macro 'MY_UNKNOWN_IMP2' 36 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize) | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:177:33: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 177 | #define MY_UNKNOWN_IMP2(i1, i2) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:36:3: note: in expansion of macro 'MY_UNKNOWN_IMP2' 36 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize) | ^~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CStdInFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:53:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 53 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:53:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 53 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG COutFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:78:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 78 | MY_UNKNOWN_IMP1(IOutStream) | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:78:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 78 | MY_UNKNOWN_IMP1(IOutStream) | ^~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CStdOutFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:91:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 91 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:91:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 91 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.h: In member function 'virtual ULONG NCompress::NLZMA::CDecoder::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.h: In member function 'virtual ULONG NCompress::NLZMA::CEncoder::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/Vector.cpp In file included from ./Common/Vector.cpp:7: ./Common/Vector.h: In member function 'int CObjectVector::Find(const T&) const': ./Common/Vector.h:161:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 161 | for(int i = 0; i < Size(); i++) | ^~~ ./Common/Vector.h:164:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 164 | return -1; | ^~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA_Alone/LzmaRam.cpp In file included from ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:6, from ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:5: ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h: In member function 'virtual ULONG NCompress::NLZMA::CDecoder::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h: In member function 'virtual ULONG NCompress::NLZMA::CEncoder::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp: In member function 'virtual ULONG CInStreamRam::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:22:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 22 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:22:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 22 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: warning: deleting object of polymorphic class type 'CInStreamRam' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:22:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 22 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp: In member function 'virtual ULONG COutStreamRam::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:66:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 66 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:66:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 66 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: warning: deleting object of polymorphic class type 'COutStreamRam' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaRam.cpp:66:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 66 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ gcc -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA_C/LzmaDecode.c g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/StringConvert.cpp In file included from ./Common/String.h:9, from ./Common/StringConvert.h:7, from ./Common/StringConvert.cpp:5: ./Common/Vector.h: In member function 'int CObjectVector::Find(const T&) const': ./Common/Vector.h:161:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 161 | for(int i = 0; i < Size(); i++) | ^~~ ./Common/Vector.h:164:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 164 | return -1; | ^~~~~~ ./Common/String.h: In member function 'int CStringBase::FindOneOf(const CStringBase&) const': ./Common/String.h:417:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 417 | for(int i = 0; i < _length; i++) | ^~~ ./Common/String.h:420:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 420 | return -1; | ^~~~~~ ./Common/String.h: In member function 'CStringBase CStringBase::GetTrimDefaultCharSet()': ./Common/String.h:434:58: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div] 434 | for(int i = 0; i < (int)(sizeof(kTrimDefaultCharSet) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 435 | sizeof(kTrimDefaultCharSet[0])); i++) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:15:20: note: first 'sizeof' operand was declared here 15 | static const char *kTrimDefaultCharSet = " \n\t"; | ^~~~~~~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Common/FileStreams.cpp In file included from ./7zip/Common/FileStreams.h:13, from ./7zip/Common/FileStreams.cpp:11: ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CInFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:177:33: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 177 | #define MY_UNKNOWN_IMP2(i1, i2) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:36:3: note: in expansion of macro 'MY_UNKNOWN_IMP2' 36 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize) | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:177:33: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 177 | #define MY_UNKNOWN_IMP2(i1, i2) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:36:3: note: in expansion of macro 'MY_UNKNOWN_IMP2' 36 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize) | ^~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CStdInFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:53:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 53 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:53:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 53 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG COutFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:78:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 78 | MY_UNKNOWN_IMP1(IOutStream) | ^~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:78:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 78 | MY_UNKNOWN_IMP1(IOutStream) | ^~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h: In member function 'virtual ULONG CStdOutFileStream::Release()': ./7zip/Common/../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:91:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 91 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Common/../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Common/../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Common/FileStreams.h:91:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 91 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA_Alone/LzmaBench.cpp In file included from ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:6, from ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:12: ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h: In member function 'virtual ULONG NCompress::NLZMA::CDecoder::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h: In member function 'virtual ULONG NCompress::NLZMA::CEncoder::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp: In member function 'virtual ULONG CBenchmarkInStream::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:143:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 143 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:143:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 143 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: warning: deleting object of polymorphic class type 'CBenchmarkInStream' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:143:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 143 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp: In member function 'virtual ULONG CBenchmarkOutStream::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:186:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 186 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:186:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 186 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp: In member function 'virtual ULONG CCrcOutStream::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:211:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 211 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:211:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 211 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: warning: deleting object of polymorphic class type 'CCrcOutStream' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:211:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 211 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp: In member function 'virtual ULONG CProgressInfo::Release()': ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:260:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 260 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:260:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 260 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:160:24: warning: deleting object of polymorphic class type 'CProgressInfo' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/../LZMA/../../../Common/MyCom.h:171:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 171 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:260:3: note: in expansion of macro 'MY_UNKNOWN_IMP' 260 | MY_UNKNOWN_IMP | ^~~~~~~~~~~~~~ ./7zip/Compress/LZMA_Alone/LzmaBench.cpp: In function 'int LzmaBenchmark(FILE*, UInt32, UInt32, bool)': ./7zip/Compress/LZMA_Alone/LzmaBench.cpp:379:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 379 | if (dictionarySize < (1 << 19) && isBT4 || dictionarySize < (1 << 15)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA/LZMADecoder.cpp In file included from ./7zip/Compress/LZMA/LZMADecoder.h:6, from ./7zip/Compress/LZMA/LZMADecoder.cpp:5: ./7zip/Compress/LZMA/LZMADecoder.h: In member function 'virtual ULONG NCompress::NLZMA::CDecoder::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.h:196:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 196 | MY_UNKNOWN_IMP1( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMADecoder.cpp: In member function 'virtual LONG NCompress::NLZMA::CDecoder::SetOutStreamSize(const UInt64*)': ./7zip/Compress/LZMA/LZMADecoder.cpp:312:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 312 | if (_outSizeDefined = (outSize != NULL)) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./Common/CommandLineParser.cpp In file included from ./Common/String.h:9, from ./Common/CommandLineParser.h:6, from ./Common/CommandLineParser.cpp:5: ./Common/Vector.h: In member function 'int CObjectVector::Find(const T&) const': ./Common/Vector.h:161:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 161 | for(int i = 0; i < Size(); i++) | ^~~ ./Common/Vector.h:164:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 164 | return -1; | ^~~~~~ ./Common/String.h: In member function 'int CStringBase::FindOneOf(const CStringBase&) const': ./Common/String.h:417:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 417 | for(int i = 0; i < _length; i++) | ^~~ ./Common/String.h:420:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 420 | return -1; | ^~~~~~ ./Common/String.h: In member function 'CStringBase CStringBase::GetTrimDefaultCharSet()': ./Common/String.h:434:58: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div] 434 | for(int i = 0; i < (int)(sizeof(kTrimDefaultCharSet) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 435 | sizeof(kTrimDefaultCharSet[0])); i++) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:15:20: note: first 'sizeof' operand was declared here 15 | static const char *kTrimDefaultCharSet = " \n\t"; | ^~~~~~~~~~~~~~~~~~~ ./Common/String.h: In instantiation of 'CStringBase CStringBase::GetTrimDefaultCharSet() [with T = wchar_t]': ./Common/String.h:447:26: required from 'void CStringBase::TrimRight() [with T = wchar_t]' 447 | TrimRightWithCharSet(GetTrimDefaultCharSet()); | ^~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:472:14: required from 'void CStringBase::Trim() [with T = wchar_t]' 472 | TrimRight(); | ~~~~~~~~~^~ ./Common/CommandLineParser.cpp:34:13: required from here 34 | sTemp.Trim(); | ~~~~~~~~~~^~ ./Common/String.h:434:58: warning: division 'sizeof (const char*) / sizeof (const char)' does not compute the number of array elements [-Wsizeof-pointer-div] 434 | for(int i = 0; i < (int)(sizeof(kTrimDefaultCharSet) / | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 435 | sizeof(kTrimDefaultCharSet[0])); i++) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Common/String.h:15:20: note: first 'sizeof' operand was declared here 15 | static const char *kTrimDefaultCharSet = " \n\t"; | ^~~~~~~~~~~~~~~~~~~ g++ -c -I. -I./Common -I./7zip/Common -I./7zip/Compress/LZMA -I./7zip/Compress/LZMA_Alone -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char ./7zip/Compress/LZMA/LZMAEncoder.cpp In file included from ./7zip/Compress/LZMA/LZMAEncoder.h:6, from ./7zip/Compress/LZMA/LZMAEncoder.cpp:8: ./7zip/Compress/LZMA/LZMAEncoder.h: In member function 'virtual ULONG NCompress::NLZMA::CEncoder::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:182:37: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 182 | #define MY_UNKNOWN_IMP3(i1, i2, i3) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.h:373:3: note: in expansion of macro 'MY_UNKNOWN_IMP3' 373 | MY_UNKNOWN_IMP3( | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h: In member function 'virtual ULONG NBT2::CMatchFinderBinTree::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h: In member function 'virtual ULONG NBT3::CMatchFinderBinTree::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h: In member function 'virtual ULONG NBT4::CMatchFinderBinTree::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h: In member function 'virtual ULONG NBT4B::CMatchFinderBinTree::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h: In member function 'virtual ULONG NPat2::CPatricia::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h: In member function 'virtual ULONG NPat2H::CPatricia::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h: In member function 'virtual ULONG NPat3H::CPatricia::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h: In member function 'virtual ULONG NPat4H::CPatricia::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h: In member function 'virtual ULONG NPat2R::CPatricia::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h: In member function 'virtual ULONG NHC3::CMatchFinderHC::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h: In member function 'virtual ULONG NHC4::CMatchFinderHC::Release()': ./7zip/Compress/LZMA/../../../Common/MyCom.h:159:32: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 159 | STDMETHOD_(ULONG, Release)() { if (--__m_RefCount != 0) \ | ^~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:160:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | return __m_RefCount; delete this; return 0; } | ^~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro 'MY_ADDREF_RELEASE' 166 | MY_ADDREF_RELEASE | ^~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../../../Common/MyCom.h:173:28: note: in expansion of macro 'MY_UNKNOWN_IMP_SPEC' 173 | #define MY_UNKNOWN_IMP1(i) MY_UNKNOWN_IMP_SPEC( \ | ^~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro 'MY_UNKNOWN_IMP1' 29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback) | ^~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.cpp: In member function 'LONG NCompress::NLZMA::CEncoder::GetOptimumFast(UInt32, UInt32&, UInt32&)': ./7zip/Compress/LZMA/LZMAEncoder.cpp:1139:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1139 | repLens[repMaxIndex] + 2 >= lenMain && (backMain > (1<<12))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.cpp:1154:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1154 | _longestMatchLength == lenMain + 1 && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 1155 | !ChangePair(backMain, _matchDistances[_longestMatchLength]) || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./7zip/Compress/LZMA/LZMAEncoder.cpp:1157:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1157 | _longestMatchLength + 1 >= lenMain && lenMain >= 3 && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 1158 | ChangePair(_matchDistances[lenMain - 1], backMain) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar -rv liblzmalib.a mylib.o LzmaBench.o LzmaRam.o LzmaRamDecode.o LzmaDecode.o BranchX86.o LZMADecoder.o LZMAEncoder.o LZInWindow.o LZOutWindow.o RangeCoderBit.o InBuffer.o OutBuffer.o FileStreams.o StreamUtils.o Alloc.o C_FileIO.o CommandLineParser.o CRC.o String.o StringConvert.o StringToInt.o Vector.o ar: creating liblzmalib.a a - mylib.o a - LzmaBench.o a - LzmaRam.o a - LzmaRamDecode.o a - LzmaDecode.o a - BranchX86.o a - LZMADecoder.o a - LZMAEncoder.o a - LZInWindow.o a - LZOutWindow.o a - RangeCoderBit.o a - InBuffer.o a - OutBuffer.o a - FileStreams.o a - StreamUtils.o a - Alloc.o a - C_FileIO.o a - CommandLineParser.o a - CRC.o a - String.o a - StringConvert.o a - StringToInt.o a - Vector.o gcc -shared -Wl,-soname,liblzmalib.so.1 -o liblzmalib.so.1.1.0 mylib.o LzmaBench.o LzmaRam.o LzmaRamDecode.o LzmaDecode.o BranchX86.o LZMADecoder.o LZMAEncoder.o LZInWindow.o LZOutWindow.o RangeCoderBit.o InBuffer.o OutBuffer.o FileStreams.o StreamUtils.o Alloc.o C_FileIO.o CommandLineParser.o CRC.o String.o StringConvert.o StringToInt.o Vector.o \ -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L. -lstdc++ -lm -lc ln -f -s liblzmalib.so.1.1.0 liblzmalib.so.1 ln -f -s liblzmalib.so.1.1.0 liblzmalib.so LD_RUN_PATH=/usr/lib64:. gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -Wall -fPIC -fsigned-char -o lzmacmd lzmacmd.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L. -llzmalib -lstdc++ -lm -lc + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jEp9Xf + umask 022 + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + mkdir /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd lzmalib-0.0.1 + '[' 1 -eq 1 ']' + /usr/bin/make install DESTDIR=/home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT 'INSTALL=/usr/bin/install -p' mkdir -p /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/include cp -Rf lzmalib.h /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/include mkdir -p /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/lib64 cp -Rf liblzmalib.a liblzmalib.so.1.1.0 liblzmalib.so.1 liblzmalib.so /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/lib64 mkdir -p /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/bin cp -Rf lzmacmd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/bin + chrpath -d /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/bin/lzmacmd + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 0.0.1-14.mga10 --unique-debug-suffix -0.0.1-14.mga10.x86_64 --unique-debug-src-base lzmalib-0.0.1-14.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/lzmalib-0.0.1 find-debuginfo: starting Extracting debug info from 2 files DWARF-compressing 2 files sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/lzmalib-0.0.1-14.mga10.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Reading /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/SPECPARTS/rpm-debuginfo.specpart Processing files: lzmacmd-0.0.1-14.mga10.x86_64 Provides: lzmacmd = 0.0.1-14.mga10 lzmacmd(x86-64) = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) liblzmalib.so.1()(64bit) Processing files: lib64lzmalib1-0.0.1-14.mga10.x86_64 Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.z8j3Dk + umask 022 + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + cd lzmalib-0.0.1 + DOCDIR=/home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/share/doc/lib64lzmalib1 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/share/doc/lib64lzmalib1 + cp -pr /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/lzmalib-0.0.1/README /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT/usr/share/doc/lib64lzmalib1 + RPM_EC=0 ++ jobs -p + exit 0 Provides: lib64lzmalib1 = 0.0.1-14.mga10 lib64lzmalib1(x86-64) = 0.0.1-14.mga10 liblzmalib.so.1()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: lib64lzmalib-devel-0.0.1-14.mga10.x86_64 Provides: devel(liblzmalib(64bit)) lib64lzmalib-devel = 0.0.1-14.mga10 lib64lzmalib-devel(x86-64) = 0.0.1-14.mga10 lzmalib-devel = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: devel(libgcc_s(64bit)) devel(libstdc++(64bit)) Processing files: lzmalib-debugsource-0.0.1-14.mga10.x86_64 Provides: lzmalib-debugsource = 0.0.1-14.mga10 lzmalib-debugsource(x86-64) = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: lzmalib-debuginfo-0.0.1-14.mga10.x86_64 Provides: lzmalib-debuginfo = 0.0.1-14.mga10 lzmalib-debuginfo(x86-64) = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: lzmalib-debugsource(x86-64) = 0.0.1-14.mga10 Processing files: lzmacmd-debuginfo-0.0.1-14.mga10.x86_64 Provides: debuginfo(build-id) = 1156b4b318deca8ec2e08c3a3b50d17f369940c6 lzmacmd-debuginfo = 0.0.1-14.mga10 lzmacmd-debuginfo(x86-64) = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: lzmalib-debugsource(x86-64) = 0.0.1-14.mga10 Processing files: lib64lzmalib1-debuginfo-0.0.1-14.mga10.x86_64 Provides: debuginfo(build-id) = f5cc1dd64c3519fbdfc8b0faaa6f3ef955464e70 lib64lzmalib1-debuginfo = 0.0.1-14.mga10 lib64lzmalib1-debuginfo(x86-64) = 0.0.1-14.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: lzmalib-debugsource(x86-64) = 0.0.1-14.mga10 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build/BUILDROOT Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lzmalib-debuginfo-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lzmacmd-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lzmacmd-debuginfo-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64lzmalib1-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lzmalib-debugsource-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64lzmalib1-debuginfo-0.0.1-14.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64lzmalib-devel-0.0.1-14.mga10.x86_64.rpm Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.41Iwtx + umask 022 + cd /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + test -d /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + rm -rf /home/pterjan/rpmbuild/BUILD/lzmalib-0.0.1-build + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!