Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394882-71812/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '2c20211653624d42b2a5c3cf1ddb18cd', '-D', '/var/lib/mock/dist-an23-dde-build-394882-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/unrar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1724976000 Wrote: /builddir/build/SRPMS/unrar-5.9.4-1.3.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394882-71812/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '116580ad48184f70af5a1ed76d56c18b', '-D', '/var/lib/mock/dist-an23-dde-build-394882-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.d_pl89xg:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/unrar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1724976000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.X8ZWwI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf unrar + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/unrarsrc-5.9.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd unrar + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/unrar-5.9.4-build.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2022-48579.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + cp -p /builddir/build/SOURCES/unrar.1 . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aZZVTj + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd unrar + /usr/bin/make -O -j80 V=1 VERBOSE=1 -f makefile unrar CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -pthread' STRIP=: g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c isnt.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c global.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c resource.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c smallfn.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c pathfn.cpp pathfn.cpp: In function 'wchar* ConvertPath(const wchar*, wchar*, size_t)': pathfn.cpp:36:12: warning: unused variable 'SlashCount' [-Wunused-variable] 36 | uint SlashCount=0; | ^~~~~~~~~~ pathfn.cpp:35:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 35 | if (IsPathDiv(s[0]) && IsPathDiv(s[1])) | ^~ pathfn.cpp:37:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 37 | for (const wchar *t=s+2;*t!=0;t++) | ^~~ pathfn.cpp:38:32: error: 'SlashCount' was not declared in this scope 38 | if (IsPathDiv(*t) && ++SlashCount==2) | ^~~~~~~~~~ pathfn.cpp:44:25: error: 's' was not declared in this scope 44 | for (const wchar *t=s;*t!=0;t++) | ^ pathfn.cpp:50:9: error: 's' was not declared in this scope 50 | if (s==DestPtr) | ^ pathfn.cpp:51:7: error: break statement not within loop or switch 51 | break; | ^~~~~ pathfn.cpp:52:13: error: 's' was not declared in this scope 52 | DestPtr=s; | ^ pathfn.cpp:53:3: warning: no return statement in function returning non-void [-Wreturn-type] 53 | } | ^ pathfn.cpp: At global scope: pathfn.cpp:56:3: error: expected unqualified-id before 'if' 56 | if (DestPtr[0]=='.' && DestPtr[1]=='.' && DestPtr[2]==0) | ^~ pathfn.cpp:59:3: error: expected unqualified-id before 'if' 59 | if (DestPath!=NULL) | ^~ pathfn.cpp:67:3: error: expected unqualified-id before 'return' 67 | return (wchar *)DestPtr; | ^~~~~~ pathfn.cpp:68:1: error: expected declaration before '}' token 68 | } | ^ pathfn.cpp: In function 'void MakeNameUsable(char*, bool)': pathfn.cpp:453:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 453 | if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended && (byte)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void MakeNameUsable(wchar*, bool)': pathfn.cpp:474:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 474 | if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended && (uint)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void GenArcName(wchar*, size_t, const wchar*, uint, bool&)': pathfn.cpp:757:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 757 | if (StartWeekDay<0) | ^ make: *** [makefile:132: pathfn.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c system.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c extract.cpp extract.cpp: In member function 'void CmdExtract::DoExtract()': extract.cpp:76:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 76 | if (!Cmd->DisableDone) | ^ extract.cpp: In member function 'EXTRACT_ARC_CODE CmdExtract::ExtractArchive()': extract.cpp:211:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 211 | if (!ExtractCurrentFile(Arc,Size,Repeat)) | ^ extract.cpp: In member function 'bool CmdExtract::ExtractCurrentFile(Archive&, size_t, bool&)': extract.cpp:242:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 242 | if (HeaderSize==0) | ^ extract.cpp:269:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 269 | if (HeaderType==HEAD_ENDARC) | ^ extract.cpp:365:40: error: 'RedirName' was not declared in this scope 365 | SlashToNative(Arc.FileHead.RedirName,RedirName,ASIZE(RedirName)); | ^~~~~~~~~ extract.cpp:376:32: warning: comparison of integer expressions of different signedness: 'uint' {aka 'unsigned int'} and 'int' [-Wsign-compare] 376 | if (Cmd->VersionControl-1==Version) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ extract.cpp:598:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 598 | if (Command!='I') | ^ extract.cpp:662:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 662 | if (FileCreateMode && *NameExisting!=0) // *NameExisting can be 0 in case of excessive -ap switch. | ^ extract.cpp:668:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 668 | else | ^~~~ extract.cpp:695:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ^~ extract.cpp:695:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ extract.cpp:707:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 707 | if (!Arc.FileHead.SplitBefore) | ^ extract.cpp:783:82: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 783 | (!LinkEntry || SetAttrOnly || Arc.FileHead.RedirType==FSREDIR_FILECOPY && LinkSuccess) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:794:66: warning: comparison of integer expressions of different signedness: 'int64' {aka 'long int'} and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 794 | if (Preallocated>0 && (BrokenFile || DataIO.CurUnpWrite!=Preallocated)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:832:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 832 | if (!ExtrFile) | ^ make: *** [makefile:132: extract.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c getbits.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c options.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filcreat.cpp options.cpp: In destructor 'RAROptions::~RAROptions()': options.cpp:13:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 13 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:24, from options.cpp:1: options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ options.cpp: In member function 'void RAROptions::Init()': options.cpp:19:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c encname.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c headers.cpp headers.cpp: In member function 'FileHeader& FileHeader::operator=(FileHeader&)': headers.cpp:43:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct FileHeader' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 43 | memcpy(this,&hd,sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:28, from headers.cpp:1: headers.hpp:175:8: note: 'struct FileHeader' declared here 175 | struct FileHeader:BlockHeader | ^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rar.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c secpassword.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c crc.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha256.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c match.cpp match.cpp: In function 'bool CmpName(const wchar*, const wchar*, int)': match.cpp:51:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 51 | if (CmpMode==MATCH_SUBPATH || CmpMode==MATCH_WILDSUBPATH) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c find.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c threadpool.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c volume.cpp volume.cpp: In function 'bool MergeArchive(Archive&, ComprDataIO*, bool, wchar)': volume.cpp:22:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 22 | hd->UnpVer>=20 && hd->FileHash.CRC32!=0xffffffff; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c hash.cpp hash.cpp: In member function 'bool HashValue::operator==(const HashValue&)': hash.cpp:33:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 33 | if (Type==HASH_RAR14 && cmp.Type==HASH_RAR14 || | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strlist.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c timefn.cpp timefn.cpp: In member function 'void RarTime::SetIsoText(const wchar*)': timefn.cpp:253:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 253 | if (FieldPos=ASIZE(DirName)) g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rarvm.cpp rarvm.cpp: In member function 'bool RarVM::ExecuteStandardFilter(VM_StandardFilters)': rarvm.cpp:124:9: warning: enumeration value 'VMSF_NONE' not handled in switch [-Wswitch] 124 | switch(FilterType) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strfn.cpp strfn.cpp: In function 'bool IsAlpha(int)': strfn.cpp:195:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 195 | return ch>='A' && ch<='Z' || ch>='a' && ch<='z'; | ~~~~~~~~^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c unicode.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c ui.cpp In file included from ui.cpp:12: uiconsole.cpp: In function 'UIASKREP_RESULT uiAskReplace(wchar*, size_t, int64, RarTime*, uint)': uiconsole.cpp:7:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct FindData'; use assignment or value-initialization instead [-Wclass-memaccess] 7 | memset(&ExistingFD,0,sizeof(ExistingFD)); // In case find fails. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:40, from ui.cpp:1: find.hpp:8:8: note: 'struct FindData' declared here 8 | struct FindData | ^~~~~~~~ uiconsole.cpp: In member function 'void uiMsgStore::Msg()': uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_INCERRCOUNT' not handled in switch [-Wswitch] 86 | switch(Code) | ^ uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OLDTOSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_WRONGSFXVER' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_HEADENCMISMATCH' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_DICTOUTMEM' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_USESMALLERDICT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYOLD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYLOCKED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTFIRSTVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RECVOLLIMIT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RECVOLFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OPFAILED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTSUPPORTED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ENCRNOTSUPPORTED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RARZIPONLY' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_REPAIROLDFORMAT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESREPAIRED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESTOADD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESTODELETE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NTFSREQUIRED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ZIPVOLSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_FILERO' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_TOOLARGESFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOZIPSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_EMAIL' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLGET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLBROKEN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLSET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_STREAMBROKEN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_STREAMUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_UOWNERGET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OPENPRESERVEATIME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_BUILD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRSEARCH' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_ANALYZEFILEDATA' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRNOTFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRDAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_BLOCKSRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_COPYINGDATA' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_AREADAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORDAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORNOTRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_FOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_DISKFULLNEXT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_FCREATEERROR' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_SEARCHDUPFILESSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_SEARCHDUPFILESEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_CLEARATTRSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_CLEARATTRFILE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_DELADDEDSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_DELADDEDFILE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_ERASEDISK' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMPROGRESS' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_PROTECTSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_PROTECTEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_TESTADDEDSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_TESTADDEDEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_RRTESTINGEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_NEWARCHIVE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_NEWREVFILE' not handled in switch [-Wswitch] g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c file.cpp file.cpp: In destructor 'virtual File::~File()': file.cpp:26:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 26 | if (hFile!=FILE_BAD_HANDLE && !SkipClose) | ^ file.cpp: In member function 'bool File::Create(const wchar*, uint)': file.cpp:179:8: warning: unused variable 'ShareRead' [-Wunused-variable] 179 | bool ShareRead=(Mode & FMF_SHAREREAD)!=0 || File::OpenShared; | ^~~~~~~~~ file.cpp: In member function 'bool File::Write(const void*, size_t)': file.cpp:336:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 336 | Success=Written==Size; | ~~~~~~~^~~~~~ file.cpp:357:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 357 | if (Written0) | ~~~~~~~^~~~~ file.cpp: In member function 'virtual int File::Read(void*, size_t)': file.cpp:383:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 383 | if (AllowExceptions) | ^ file.cpp: In member function 'virtual int64 File::Tell()': file.cpp:515:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 515 | if (hFile==FILE_BAD_HANDLE) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha1.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c scantree.cpp scantree.cpp: In member function 'bool ScanTree::GetNextMask()': scantree.cpp:226:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 226 | if (Name[0]=='.' && (Name[1]==0 || Name[1]=='.' && Name[2]==0)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~ scantree.cpp: In member function 'SCAN_CODE ScanTree::FindProc(FindData*)': scantree.cpp:265:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 265 | FolderWildcards && Recurse!=RECURSE_DISABLE || | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ scantree.cpp:266:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 266 | Wildcards && Recurse==RECURSE_WILDCARDS || | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scantree.cpp:267:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 267 | ScanEntireDisk && Recurse!=RECURSE_DISABLE); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c list.cpp list.cpp: In function 'void ListArchive(CommandData*)': list.cpp:50:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 50 | if (Arc.Volume) | ^ list.cpp:92:17: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 92 | switch(HeaderType) | ^ list.cpp:92:17: warning: enumeration value 'HEAD_MAIN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_CRYPT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_ENDARC' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_MAIN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_FILE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_SERVICE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_ENDARC' not handled in switch [-Wswitch] list.cpp:117:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 117 | if (!Bare && !Technical) | ^ list.cpp:151:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 151 | Arc.GetHeaderType()==HEAD_ENDARC && Arc.EndArcHead.NextVolume) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.cpp: In function 'void ListFileHeader(Archive&, FileHeader&, bool&, bool, bool, bool)': list.cpp:264:15: warning: enumeration value 'FSREDIR_NONE' not handled in switch [-Wswitch] 264 | switch(hd.RedirType) | ^ In file included from rar.hpp:13, from list.cpp:1: rardefs.hpp:4:24: warning: comparison of integer expressions of different signedness: 'int64' {aka 'long int'} and 'long unsigned int' [-Wsign-compare] 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) | ~~~^~~~ list.cpp:290:31: note: in expansion of macro 'Min' 290 | int DataSize=(int)Min(hd.PackSize,ASIZE(LinkTargetA)-1); | ^~~ list.cpp:278:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 278 | if (hd.RedirType!=FSREDIR_NONE) | ^ list.cpp: At global scope: list.cpp:4:13: warning: 'void ListSymLink(Archive&)' declared 'static' but never defined [-Wunused-function] 4 | static void ListSymLink(Archive &Arc); | ^~~~~~~~~~~ list.cpp:6:13: warning: 'void ListOldSubHeader(Archive&)' declared 'static' but never defined [-Wunused-function] 6 | static void ListOldSubHeader(Archive &Arc); | ^~~~~~~~~~~~~~~~ list.cpp:7:13: warning: 'void ListNewSubHeader(CommandData*, Archive&)' declared 'static' but never defined [-Wunused-function] 7 | static void ListNewSubHeader(CommandData *Cmd,Archive &Arc); | ^~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c extinfo.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c crypt.cpp In file included from crypt.cpp:7: crypt3.cpp: In member function 'void CryptData::SetKey30(bool, SecPassword*, const wchar*, const byte*)': crypt3.cpp:8:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 8 | (Salt==NULL && !KDF3Cache[I].SaltPresent || Salt!=NULL && | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypt.cpp: In constructor 'CryptData::CryptData()': crypt.cpp:14:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct CryptData::KDF3CacheItem'; use assignment or value-initialization instead [-Wclass-memaccess] 14 | memset(KDF3Cache,0,sizeof(KDF3Cache)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:26, from crypt.cpp:1: crypt.hpp:35:10: note: 'struct CryptData::KDF3CacheItem' declared here 35 | struct KDF3CacheItem | ^~~~~~~~~~~~~ crypt.cpp:15:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct CryptData::KDF5CacheItem'; use assignment or value-initialization instead [-Wclass-memaccess] 15 | memset(KDF5Cache,0,sizeof(KDF5Cache)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypt.hpp:25:10: note: 'struct CryptData::KDF5CacheItem' declared here 25 | struct KDF5CacheItem | ^~~~~~~~~~~~~ crypt.cpp: In member function 'void CryptData::DecryptBlock(byte*, size_t)': crypt.cpp:33:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch] 33 | switch(Method) | ^ crypt.cpp: In member function 'bool CryptData::SetCryptKeys(bool, CRYPT_METHOD, SecPassword*, const byte*, const byte*, uint, byte*, byte*)': crypt.cpp:69:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch] 69 | switch(Method) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rijndael.cpp rijndael.cpp: In member function 'void Rijndael::GenerateTables()': rijndael.cpp:448:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 448 | for (int i = 0,w = 1; i < sizeof(rcon)/sizeof(rcon[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c archive.cpp In file included from archive.cpp:3: arccmt.cpp: In member function 'bool Archive::DoGetComment(Array*)': arccmt.cpp:53:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 53 | if (Format==RARFMT14 && MainHead.PackComment || Format!=RARFMT14 && CommHead.Method!=0x30) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ archive.cpp: In static member function 'static RARFORMAT Archive::IsSignature(const byte*, size_t)': archive.cpp:102:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 102 | if (Size>=1 && D[0]==0x52) | ^ archive.cpp: In member function 'bool Archive::IsArchive(bool)': archive.cpp:206:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 206 | StartFound=Type==HEAD_MAIN || SilentOpen && Type==HEAD_CRYPT; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arccmt.cpp: At global scope: arccmt.cpp:1:13: warning: 'bool IsAnsiEscComment(const wchar*, size_t)' declared 'static' but never defined [-Wunused-function] 1 | static bool IsAnsiEscComment(const wchar *Data,size_t Size); | ^~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c cmddata.cpp In file included from cmddata.cpp:3: cmdfilter.cpp: In member function 'bool CommandData::TimeCheck(RarTime&, RarTime&, RarTime&)': cmdfilter.cpp:196:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 196 | if (FileMtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:206:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 206 | if (FileMtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:216:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 216 | if (FileCtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:226:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 226 | if (FileCtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:236:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 236 | if (FileAtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:246:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 246 | if (FileAtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp: In member function 'int CommandData::IsProcessFile(FileHeader&, bool*, int, bool, wchar*, uint)': cmdfilter.cpp:288:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 288 | if ((FileHead.FileAttr & ExclFileAttr)!=0 || FileHead.Dir && ExclDir) | ~~~~~~~~~~~~~^~~~~~~~~~ cmdfilter.cpp:290:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 290 | if (InclAttrSet && (!FileHead.Dir && (FileHead.FileAttr & InclFileAttr)==0 || | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmddata.cpp: In member function 'void CommandData::ProcessSwitch(const wchar*)': cmddata.cpp:780:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 780 | if (!AlreadyBad) | ^ cmddata.cpp: In member function 'void CommandData::ProcessCommand()': cmddata.cpp:909:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 909 | if (Command[0]!=0 && Command[1]!=0 && wcschr(SingleCharCommands,Command[0])!=NULL || *ArcName==0) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c arcread.cpp arcread.cpp: In member function 'size_t Archive::ReadHeader()': arcread.cpp:17:9: warning: enumeration value 'RARFMT_NONE' not handled in switch [-Wswitch] 17 | switch(Format) | ^ arcread.cpp:17:9: warning: enumeration value 'RARFMT_FUTURE' not handled in switch [-Wswitch] arcread.cpp: In member function 'size_t Archive::ReadHeader15()': arcread.cpp:187:9: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 187 | switch(ShortBlock.HeaderType) | ^ arcread.cpp:187:9: warning: enumeration value 'HEAD_MAIN' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_FILE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_SERVICE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_CRYPT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_ENDARC' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] arcread.cpp: In member function 'size_t Archive::ReadHeader50()': arcread.cpp:699:9: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 699 | switch(ShortBlock.HeaderType) | ^ arcread.cpp:699:9: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_MAIN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_FILE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_SERVICE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_ENDARC' not handled in switch [-Wswitch] arcread.cpp: In member function 'void Archive::ProcessExtra50(RawRead*, size_t, BaseBlock*)': arcread.cpp:1071:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1071 | if ((Flags & FHEXTRA_HTIME_MTIME)!=0) | ^ arcread.cpp:1076:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1076 | if ((Flags & FHEXTRA_HTIME_CTIME)!=0) | ^ arcread.cpp:1081:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1081 | if ((Flags & FHEXTRA_HTIME_ATIME)!=0) | ^ arcread.cpp: In member function 'void Archive::ConvertFileHeader(FileHeader*)': arcread.cpp:1360:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1360 | if (hd->HSType==HSYS_UNKNOWN) | ^ arcread.cpp:1402:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1402 | if (*s=='/' || *s=='\\' && Format!=RARFMT50) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arcread.cpp: In member function 'bool Archive::ReadSubData(Array*, File*, bool)': arcread.cpp:1458:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1458 | if (SubHead.Encrypted) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c recvol.cpp In file included from recvol.cpp:3: recvol3.cpp: In function 'bool IsNewStyleRev(const wchar*)': recvol3.cpp:93:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 93 | if (!IsDigit(*Ext)) | ^ recvol3.cpp: In member function 'bool RecVolumes3::Restore(RAROptions*, const wchar*, bool)': recvol3.cpp:231:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 231 | if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 && FileNumber!=P[2]) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from recvol.cpp:4: recvol5.cpp: In member function 'bool RecVolumes5::Restore(RAROptions*, const wchar*, bool)': recvol5.cpp:382:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 382 | if (ReadSize!=RecBufferSize) | ~~~~~~~~^~~~~~~~~~~~~~~ In file included from rar.hpp:13, from recvol.cpp:1: rardefs.hpp:4:24: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) | ~~~^~~~ recvol5.cpp:399:34: note: in expansion of macro 'Min' 399 | size_t WriteSize=(size_t)Min(MaxRead,Item->FileSize); | ^~~