Open JohnFreeman646 opened 3 years ago
Thanks, you saved my time!
Thanks, you've helped me solved the issue here
It works, Thanks
Thank you so much!!!!!!!!!!!!!!!!
Hckjg
First off: I am very sorry I cannot format the output better, or can I? No Hide button? The Code method too makes layout even more terrible.
It does not work, because it still stalls on this error (Kali 2021.4):
_Hunk #1 succeeded at 32 with fuzz 1.
cc -fcommon -I. -I./LZMA/lzma465/C -I./LZMA/lzmalt -I./LZMA/lzmadaptive/C/7zip/Compress/LZMA_Lib -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -Werror -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZO_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o unsquashfs.o unsquashfs.c
unsquashfs.c: In function ‘read_super’:
unsquashfs.c:1835:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
1835 | if(swap)
| ^~
unsquashfs.c:1841:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1841 | read_fs_bytes(fd, SQUASHFS_START, sizeof(struct squashfs_superblock),
| ^~~~~
cc1: all warnings being treated as errors
make: *** [
When I change the files as servrb suggests, it does 'work', but gives me a lengthy error/messages list too:
_make[1]: Entering directory '/home/stan/sasquatch/squashfs4.3/squashfs-tools/LZMA/lzmadaptive/C/7zip/Compress/LZMALib'
g++ -O3 -Wall -c -I ../../../ ZLib.cpp
In file included from ../LZMA/LZMADecoder.h:6,
from ZLib.cpp:53:
../LZMA/LZMADecoder.h: In member function ‘virtual ULONG NCompress::NLZMA::CDecoder::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMADecoder.h:196:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
196 | MY_UNKNOWN_IMP1(
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMADecoder.h:196:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
196 | MY_UNKNOWNIMP1(
| ^~~~~~~
../LZMA/LZMAEncoder.h: In member function ‘virtual ULONG NCompress::NLZMA::CEncoder::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro ‘MY_UNKNOWN_IMP3’
373 | MY_UNKNOWN_IMP3(
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro ‘MY_UNKNOWN_IMP3’
373 | MY_UNKNOWNIMP3(
| ^~~~~~~
ZLib.cpp: In member function ‘virtual ULONG CInMemoryStream::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../LZMA/../../../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( \
| ^~~~~~~
ZLib.cpp:70:3: note: in expansion of macro ‘MY_UNKNOWN_IMP2’
70 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../LZMA/../../../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( \
| ^~~~~~~
ZLib.cpp:70:3: note: in expansion of macro ‘MY_UNKNOWN_IMP2’
70 | MY_UNKNOWNIMP2(IInStream, IStreamGetSize)
| ^~~~~~~
ZLib.cpp: In member function ‘virtual ULONG COutMemoryStream::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
ZLib.cpp:134:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
134 | MY_UNKNOWN_IMP1(IOutStream)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
ZLib.cpp:134:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
134 | MY_UNKNOWNIMP1(IOutStream)
| ^~~~~~~
g++ -O3 -Wall -c -I ../../../ ../LZMA/LZMADecoder.cpp
In file included from ../LZMA/LZMADecoder.h:6,
from ../LZMA/LZMADecoder.cpp:5:
../LZMA/LZMADecoder.h: In member function ‘virtual ULONG NCompress::NLZMA::CDecoder::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMADecoder.h:196:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
196 | MY_UNKNOWN_IMP1(
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMADecoder.h:196:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
196 | MY_UNKNOWNIMP1(
| ^~~~~~~
g++ -O3 -Wall -c -I ../../../ ../LZMA/LZMAEncoder.cpp
In file included from ../LZMA/LZMAEncoder.h:6,
from ../LZMA/LZMAEncoder.cpp:8:
../LZMA/LZMAEncoder.h: In member function ‘virtual ULONG NCompress::NLZMA::CEncoder::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro ‘MY_UNKNOWN_IMP3’
373 | MY_UNKNOWN_IMP3(
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/LZMAEncoder.h:373:3: note: in expansion of macro ‘MY_UNKNOWN_IMP3’
373 | MY_UNKNOWNIMP3(
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h: In member function ‘virtual ULONG NBT2::CMatchFinderBinTree::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h: In member function ‘virtual ULONG NBT3::CMatchFinderBinTree::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h: In member function ‘virtual ULONG NBT4::CMatchFinderBinTree::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h: In member function ‘virtual ULONG NBT4B::CMatchFinderBinTree::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/BinTree/BinTree.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h: In member function ‘virtual ULONG NPat2::CPatricia::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h: In member function ‘virtual ULONG NPat2H::CPatricia::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h: In member function ‘virtual ULONG NPat3H::CPatricia::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h: In member function ‘virtual ULONG NPat4H::CPatricia::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h: In member function ‘virtual ULONG NPat2R::CPatricia::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/Patricia/Pat.h:181:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
181 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h: In member function ‘virtual ULONG NHC3::CMatchFinderHC::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h: In member function ‘virtual ULONG NHC4::CMatchFinderHC::Release()’:
../LZMA/../../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWN_IMP1(IMatchFinderSetCallback)
| ^~~~~~~
../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; }
| ^~
../LZMA/../../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../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( \
| ^~~~~~~
../LZMA/../LZ/HashChain/HC.h:29:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
29 | MY_UNKNOWNIMP1(IMatchFinderSetCallback)
| ^~~~~~~
g++ -O3 -Wall -c -I ../../../ ../LZ/LZInWindow.cpp
g++ -O3 -Wall -c -I ../../../ ../LZ/LZOutWindow.cpp
g++ -O3 -Wall -c -I ../../../ ../RangeCoder/RangeCoderBit.cpp
g++ -O3 -Wall -c -I ../../../ ../../Common/InBuffer.cpp
g++ -O3 -Wall -c -I ../../../ ../../Common/OutBuffer.cpp
g++ -O3 -Wall -c -I ../../../ ../../Common/FileStreams.cpp
In file included from ../../Common/FileStreams.h:13,
from ../../Common/FileStreams.cpp:11:
../../Common/FileStreams.h: In member function ‘virtual ULONG CInFileStream::Release()’:
../../Common/../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../../Common/../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../../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( \
| ^~~~~~~
../../Common/FileStreams.h:36:3: note: in expansion of macro ‘MY_UNKNOWN_IMP2’
36 | MY_UNKNOWN_IMP2(IInStream, IStreamGetSize)
| ^~~~~~~
../../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; }
| ^~
../../Common/../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../../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( \
| ^~~~~~~
../../Common/FileStreams.h:36:3: note: in expansion of macro ‘MY_UNKNOWN_IMP2’
36 | MY_UNKNOWNIMP2(IInStream, IStreamGetSize)
| ^~~~~~~
../../Common/FileStreams.h: In member function ‘virtual ULONG CStdInFileStream::Release()’:
../../Common/../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../../Common/../../Common/MyCom.h:171:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
171 | MY_ADDREF_RELEASE
| ^~~~~
../../Common/FileStreams.h:53:3: note: in expansion of macro ‘MY_UNKNOWN_IMP’
53 | MY_UNKNOWN_IMP
| ^~~~~~
../../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; }
| ^~
../../Common/../../Common/MyCom.h:171:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
171 | MY_ADDREF_RELEASE
| ^~~~~
../../Common/FileStreams.h:53:3: note: in expansion of macro ‘MY_UNKNOWN_IMP’
53 | MY_UNKNOWNIMP
| ^~~~~~
../../Common/FileStreams.h: In member function ‘virtual ULONG COutFileStream::Release()’:
../../Common/../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--m_RefCount != 0) \
| ^~
../../Common/../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../../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( \
| ^~~~~~~
../../Common/FileStreams.h:78:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
78 | MY_UNKNOWN_IMP1(IOutStream)
| ^~~~~~~
../../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; }
| ^~
../../Common/../../Common/MyCom.h:166:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
166 | MY_ADDREF_RELEASE
| ^~~~~
../../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( \
| ^~~~~~~
../../Common/FileStreams.h:78:3: note: in expansion of macro ‘MY_UNKNOWN_IMP1’
78 | MY_UNKNOWNIMP1(IOutStream)
| ^~~~~~~
../../Common/FileStreams.h: In member function ‘virtual ULONG CStdOutFileStream::Release()’:
../../Common/../../Common/MyCom.h:159:32: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
159 | STDMETHOD(ULONG, Release)() { if (--__m_RefCount != 0) \
| ^~
../../Common/../../Common/MyCom.h:171:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
171 | MY_ADDREF_RELEASE
| ^~~~~
../../Common/FileStreams.h:91:3: note: in expansion of macro ‘MY_UNKNOWN_IMP’
91 | MY_UNKNOWN_IMP
| ^~~~~~
../../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; }
| ^~
../../Common/../../Common/MyCom.h:171:3: note: in expansion of macro ‘MY_ADDREF_RELEASE’
171 | MY_ADDREF_RELEASE
| ^~~~~
../../Common/FileStreams.h:91:3: note: in expansion of macro ‘MY_UNKNOWN_IMP’
91 | MY_UNKNOWN_IMP
| ^~~~~~
g++ -O3 -Wall -c -I ../../../ ../../../Common/Alloc.cpp
g++ -O3 -Wall -c -I ../../../ ../../../Common/C_FileIO.cpp
g++ -O3 -Wall -c -I ../../../ ../../../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~
In file included from ../../../Common/CommandLineParser.h:6,
from ../../../Common/CommandLineParser.cpp:5:
../../../Common/String.h: In member function ‘int CStringBase~
../../../Common/String.h: In instantiation of ‘CStringBase~~~~~~~~~^
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++ -O3 -Wall -c -I ../../../ ../../../Common/CRC.cpp
g++ -O3 -Wall -c -I ../../../ ../../Common/StreamUtils.cpp
g++ -O3 -Wall -c -I ../../../ ../../../Common/String.cpp
In file included from ../../../Common/String.h:9,
from ../../../Common/String.cpp:11:
../../../Common/Vector.h: In member function ‘int CObjectVector~
In file included from ../../../Common/String.cpp:11:
../../../Common/String.h: In member function ‘int CStringBase~
g++ -O3 -Wall -c -I ../../../ ../../../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~
In file included from ../../../Common/StringConvert.h:7,
from ../../../Common/StringConvert.cpp:5:
../../../Common/String.h: In member function ‘int CStringBase~
g++ -O3 -Wall -c -I ../../../ ../../../Common/StringToInt.cpp
g++ -O3 -Wall -c -I ../../../ ../../../Common/Vector.cpp
In file included from ../../../Common/Vector.cpp:7:
../../../Common/Vector.h: In member function ‘int CObjectVector~
this fixed the build script on MX21
So over the past few days I've had some trouble getting this to build on Kali Linux but have resolved it simply by running
CFLAGS=-fcommon ./build.sh
Rather than
./build.sh
If anyone else has been having issues like I have hopefully this at least gives them a easy to find fix for it.