Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small changes so that the build.sh runs on the latest of Kali Linux #42

Open
JohnFreeman646 opened this issue Aug 11, 2021 · 7 comments

Comments

@JohnFreeman646
Copy link

JohnFreeman646 commented Aug 11, 2021

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.

@ehsanecc
Copy link

Thanks, you saved my time!

@nobodyatall648
Copy link

Thanks, you've helped me solved the issue here

@retr0reg
Copy link

retr0reg commented Nov 1, 2021

It works, Thanks

@Up-wind
Copy link

Up-wind commented Dec 2, 2021

Thank you so much!!!!!!!!!!!!!!!!

@sevrb
Copy link

sevrb commented Dec 2, 2021

Hckjg

@StanAmsterdam
Copy link

StanAmsterdam commented Dec 20, 2021

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_super_block),
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [: unsquashfs.o] Error 1

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/LZMA_Lib'
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_UNKNOWN_IMP1(
| ^~~~~~~~~~~~~~~
../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_UNKNOWN_IMP3(
| ^~~~~~~~~~~~~~~
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_UNKNOWN_IMP2(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(
| ^~~~~~~~~~~~~~~
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_UNKNOWN_IMP3(
| ^~~~~~~~~~~~~~~
../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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP1(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_UNKNOWN_IMP2(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_UNKNOWN_IMP
| ^~~~~~~~~~~~~~
../../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_UNKNOWN_IMP1(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::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;
| ^~~~~~
In file included from ../../../Common/CommandLineParser.h:6,
from ../../../Common/CommandLineParser.cpp:5:
../../../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 instantiation of ‘CStringBase CStringBase::GetTrimDefaultCharSet() [with T = wchar_t]’:
../../../Common/String.h:447:26: required from ‘void CStringBase::TrimRight() [with T = wchar_t]’
../../../Common/String.h:472:14: required from ‘void CStringBase::Trim() [with T = wchar_t]’
../../../Common/CommandLineParser.cpp:34:13: required from here
../../../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++ -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::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;
| ^~~~~~
In file included from ../../../Common/String.cpp:11:
../../../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;
| ^~~~~~
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::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;
| ^~~~~~
In file included from ../../../Common/StringConvert.h:7,
from ../../../Common/StringConvert.cpp:5:
../../../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;
| ^~~~~~
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::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;
| ^~~~~~
_

@whudson
Copy link

whudson commented Jan 30, 2022

this fixed the build script on MX21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants