>>> objconv: Building testing/objconv 2.52_git20210213-r2 (using abuild 3.13.0-r5) started Sun, 22 Sep 2024 12:24:34 +0000 >>> objconv: Checking sanity of /home/buildozer/aports/testing/objconv/APKBUILD... >>> objconv: Analyzing dependencies... >>> objconv: Installing for build: build-base (1/1) Installing .makedepends-objconv (20240922.122444) OK: 251 MiB in 104 packages >>> objconv: Cleaning up srcdir >>> objconv: Cleaning up pkgdir >>> objconv: Cleaning up tmpdir >>> objconv: Fetching https://distfiles.alpinelinux.org/distfiles/edge/objconv-2.52_git20210213.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> objconv: Fetching objconv-2.52_git20210213.tar.gz::https://github.com/gitGNU/objconv/archive/42c66561231fffd39030778c1590ffb232539da3.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 13125 0 13125 0 0 27503 0 --:--:-- --:--:-- --:--:-- 27503 100 4944k 0 4944k 0 0 4643k 0 --:--:-- 0:00:01 --:--:-- 8400k >>> objconv: Fetching https://distfiles.alpinelinux.org/distfiles/edge/objconv-2.52_git20210213.tar.gz >>> objconv: Checking sha512sums... objconv-2.52_git20210213.tar.gz: OK >>> objconv: Unpacking /var/cache/distfiles/objconv-2.52_git20210213.tar.gz... g++ -O2 -Wall -Wextra -c -o cmdline.o cmdline.cpp g++ -O2 -Wall -Wextra -c -o cof2asm.o cof2asm.cpp g++ -O2 -Wall -Wextra -c -o cof2cof.o cof2cof.cpp g++ -O2 -Wall -Wextra -c -o cof2elf.o cof2elf.cpp g++ -O2 -Wall -Wextra -c -o cof2omf.o cof2omf.cpp g++ -O2 -Wall -Wextra -c -o coff.o coff.cpp g++ -O2 -Wall -Wextra -c -o containers.o containers.cpp g++ -O2 -Wall -Wextra -c -o disasm1.o disasm1.cpp g++ -O2 -Wall -Wextra -c -o disasm2.o disasm2.cpp g++ -O2 -Wall -Wextra -c -o elf.o elf.cpp g++ -O2 -Wall -Wextra -c -o elf2asm.o elf2asm.cpp g++ -O2 -Wall -Wextra -c -o elf2cof.o elf2cof.cpp g++ -O2 -Wall -Wextra -c -o elf2elf.o elf2elf.cpp g++ -O2 -Wall -Wextra -c -o elf2mac.o elf2mac.cpp g++ -O2 -Wall -Wextra -c -o error.o error.cpp g++ -O2 -Wall -Wextra -c -o library.o library.cpp g++ -O2 -Wall -Wextra -c -o mac2asm.o mac2asm.cpp g++ -O2 -Wall -Wextra -c -o mac2elf.o mac2elf.cpp g++ -O2 -Wall -Wextra -c -o mac2mac.o mac2mac.cpp g++ -O2 -Wall -Wextra -c -o macho.o macho.cpp g++ -O2 -Wall -Wextra -c -o main.o main.cpp g++ -O2 -Wall -Wextra -c -o omf.o omf.cpp g++ -O2 -Wall -Wextra -c -o omf2asm.o omf2asm.cpp g++ -O2 -Wall -Wextra -c -o omf2cof.o omf2cof.cpp g++ -O2 -Wall -Wextra -c -o omfhash.o omfhash.cpp g++ -O2 -Wall -Wextra -c -o opcodes.o opcodes.cpp g++ -O2 -Wall -Wextra -c -o stdafx.o stdafx.cpp In file included from stdafx.h:36, from cof2cof.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from error.cpp:17: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from elf2asm.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from cof2omf.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from cmdline.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from elf2mac.cpp:13: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from library.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from main.cpp:16: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from omf.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from macho.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from disasm1.cpp:16: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from disasm2.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from mac2elf.cpp:13: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from cof2elf.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from mac2asm.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from cof2asm.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from mac2mac.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from coff.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from elf2cof.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from containers.cpp:18: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from elf.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from elf2elf.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from stdafx.cpp:5: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from omf2cof.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from omf2asm.cpp:12: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ In file included from stdafx.h:36, from omfhash.cpp:14: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ cof2omf.cpp: In constructor 'CCOF2OMF::CCOF2OMF()': cof2omf.cpp:16:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CCOF2OMF'; use assignment or value-initialization instead [-Wclass-memaccess] 16 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:229:7: note: 'class CCOF2OMF' declared here 229 | class CCOF2OMF : public CCOFF { | ^~~~~~~~ cmdline.cpp: In constructor 'CCommandLineInterpreter::CCommandLineInterpreter()': cmdline.cpp:72:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CCommandLineInterpreter'; use assignment or value-initialization instead [-Wclass-memaccess] 72 | memset(this, 0, sizeof(*this)); // Set all to zero | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:44: cmdline.h:117:7: note: 'class CCommandLineInterpreter' declared here 117 | class CCommandLineInterpreter { | ^~~~~~~~~~~~~~~~~~~~~~~ omf.cpp: In constructor 'COMF::COMF()': omf.cpp:90:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class COMF'; use assignment or value-initialization instead [-Wclass-memaccess] 90 | memset(this, 0, sizeof(*this)); // reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ error.cpp: In member function 'void CErrorReporter::submit(int, const char*, const char*)': error.cpp:263:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 263 | if (extra1 == 0) extra1 = "???"; if (extra2 == 0) extra2 = "???"; | ^~ In file included from stdafx.h:42: converters.h:137:7: note: 'class COMF' declared here 137 | class COMF : public CFileBuffer { | ^~~~ error.cpp:263:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 263 | if (extra1 == 0) extra1 = "???"; if (extra2 == 0) extra2 = "???"; | ^~ omf2cof.cpp: In constructor 'COMF2COF::COMF2COF()': omf2cof.cpp:19:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class COMF2COF'; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this, 0, sizeof(*this)); // Reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:257:7: note: 'class COMF2COF' declared here 257 | class COMF2COF : public COMF { | ^~~~~~~~ In file included from stdafx.h:36, from opcodes.cpp:59: containers.h: In member function 'uint32 CTextFileBuffer::PushString(const char*)': containers.h:164:35: warning: unused parameter 's' [-Wunused-parameter] 164 | uint32 PushString(char const * s){return 0;}; // Make PushString private to prevent using it | ~~~~~~~~~~~~~^ coff.cpp: In constructor 'CCOFF::CCOFF()': coff.cpp:168:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CCOFF'; use assignment or value-initialization instead [-Wclass-memaccess] 168 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:81:7: note: 'class CCOFF' declared here 81 | class CCOFF : public CFileBuffer { | ^~~~~ library.cpp: In member function 'void CLibrary::Go()': library.cpp:216:29: warning: unused variable 'FileType0' [-Wunused-variable] 216 | int FileType0 = MemberBuffer.GetFileType(); | ^~~~~~~~~ elf2cof.cpp: In function 'int SymbolOverflow(uint32)': elf2cof.cpp:388:34: warning: unused parameter 'x' [-Wunused-parameter] 388 | static int SymbolOverflow(uint32 x) { // Overloaded 32 bit version | ~~~~~~~^ elf2elf.cpp: In instantiation of 'CELF2ELF::CELF2ELF() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': elf2elf.cpp:423:16: required from here 423 | template class CELF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ elf2elf.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:401:7: note: 'class CELF2ELF' declared here 401 | class CELF2ELF : public CELF { | ^~~~~~~~ mac2mac.cpp: In instantiation of 'CMAC2MAC::CMAC2MAC() [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int]': mac2mac.cpp:405:16: required from here 405 | template class CMAC2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~ mac2mac.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMAC2MAC'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:422:7: note: 'class CMAC2MAC' declared here 422 | class CMAC2MAC : public CMACHO { | ^~~~~~~~ cof2elf.cpp: In instantiation of 'CCOF2ELF::CCOF2ELF() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': cof2elf.cpp:825:16: required from here 825 | template class CCOF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ cof2elf.cpp:18:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CCOF2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 18 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:204:7: note: 'class CCOF2ELF' declared here 204 | class CCOF2ELF : public CCOFF { | ^~~~~~~~ containers.cpp: In member function 'void CFileBuffer::Reset()': containers.cpp:436:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CFileBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 436 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ containers.h:122:7: note: 'class CFileBuffer' declared here 122 | class CFileBuffer : public CMemoryBuffer { | ^~~~~~~~~~~ elf.cpp: In instantiation of 'CELF::CELF() [with TFileHeader = Elf32_Ehdr; TSectionHeader = Elf32_Shdr; TSymbol = Elf32_Sym; TRelocation = Elf32_Rela]': elf.cpp:573:16: required from here 573 | template class CELF; | ^~~~~~~~~~~~~~~~~~~~~ elf.cpp:230:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF'; use assignment or value-initialization instead [-Wclass-memaccess] 230 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:114:7: note: 'class CELF' declared here 114 | class CELF : public CFileBuffer { | ^~~~ elf2mac.cpp: In instantiation of 'CELF2MAC::CELF2MAC() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela; TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int]': elf2mac.cpp:1097:16: required from here 1097 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:19:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2MAC'; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this, 0, sizeof(*this)); // Reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ elf2cof.cpp: In instantiation of 'CELF2COF::CELF2COF() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': elf2cof.cpp:701:16: required from here 701 | template class CELF2COF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ elf2cof.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2COF'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:314:7: note: 'class CELF2MAC' declared here 314 | class CELF2MAC : public CELF { | ^~~~~~~~ In file included from stdafx.h:42: converters.h:287:7: note: 'class CELF2COF' declared here 287 | class CELF2COF : public CELF { | ^~~~~~~~ macho.cpp: In member function 'void CMACUNIV::Go(int)': macho.cpp:670:23: warning: unused parameter 'options' [-Wunused-parameter] 670 | void CMACUNIV::Go(int options) { | ~~~~^~~~~~~ mac2mac.cpp: In instantiation of 'CMAC2MAC::CMAC2MAC() [with TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int]': mac2mac.cpp:406:16: required from here 406 | template class CMAC2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~ mac2mac.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMAC2MAC'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:422:7: note: 'class CMAC2MAC' declared here 422 | class CMAC2MAC : public CMACHO { | ^~~~~~~~ macho.cpp: In instantiation of 'CMACHO::CMACHO() [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int]': macho.cpp:751:16: required from here 751 | template class CMACHO; | ^~~~~~~~~~~~~~~~~~~~~~~ macho.cpp:132:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMACHO'; use assignment or value-initialization instead [-Wclass-memaccess] 132 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ elf.cpp: In instantiation of 'void CELF::Dump(int) [with TFileHeader = Elf32_Ehdr; TSectionHeader = Elf32_Shdr; TSymbol = Elf32_Sym; TRelocation = Elf32_Rela]': elf.cpp:573:16: required from here 573 | template class CELF; | ^~~~~~~~~~~~~~~~~~~~~ elf.cpp:347:68: warning: comparison of integer expressions of different signedness: 'int32' {aka 'int'} and 'uint32' {aka 'unsigned int'} [-Wsign-compare] 347 | if (pHeader.p_filesz < 0x100 && (int32)pHeader.p_offset < GetDataSize() && memchr(Buf()+pHeader.p_offset, 0, (uint32)pHeader.p_filesz)) { | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:167:7: note: 'class CMACHO' declared here 167 | class CMACHO : public CFileBuffer { | ^~~~~~ mac2elf.cpp: In instantiation of 'CMAC2ELF::CMAC2ELF() [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': mac2elf.cpp:1266:16: required from here 1266 | template class CMAC2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mac2elf.cpp:20:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMAC2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 20 | memset(this, 0, sizeof(*this)); // Reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from stdafx.h:42: converters.h:351:7: note: 'class CMAC2ELF' declared here 351 | class CMAC2ELF : public CMACHO { | ^~~~~~~~ elf2elf.cpp: In instantiation of 'CELF2ELF::CELF2ELF() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': elf2elf.cpp:424:16: required from here 424 | template class CELF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ elf2elf.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:401:7: note: 'class CELF2ELF' declared here 401 | class CELF2ELF : public CELF { | ^~~~~~~~ elf.cpp: In instantiation of 'CELF::CELF() [with TFileHeader = Elf64_Ehdr; TSectionHeader = Elf64_Shdr; TSymbol = Elf64_Sym; TRelocation = Elf64_Rela]': elf.cpp:574:16: required from here 574 | template class CELF; | ^~~~~~~~~~~~~~~~~~~~~ elf.cpp:230:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF'; use assignment or value-initialization instead [-Wclass-memaccess] 230 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:114:7: note: 'class CELF' declared here 114 | class CELF : public CFileBuffer { | ^~~~ cof2elf.cpp: In instantiation of 'CCOF2ELF::CCOF2ELF() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': cof2elf.cpp:826:16: required from here 826 | template class CCOF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ cof2elf.cpp:18:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CCOF2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 18 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:204:7: note: 'class CCOF2ELF' declared here 204 | class CCOF2ELF : public CCOFF { | ^~~~~~~~ elf2cof.cpp: In instantiation of 'CELF2COF::CELF2COF() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': elf2cof.cpp:702:16: required from here 702 | template class CELF2COF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ elf2cof.cpp:21:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2COF'; use assignment or value-initialization instead [-Wclass-memaccess] 21 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:287:7: note: 'class CELF2COF' declared here 287 | class CELF2COF : public CELF { | ^~~~~~~~ macho.cpp: In instantiation of 'CMACHO::CMACHO() [with TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int]': macho.cpp:752:16: required from here 752 | template class CMACHO; | ^~~~~~~~~~~~~~~~~~~~~~~ macho.cpp:132:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMACHO'; use assignment or value-initialization instead [-Wclass-memaccess] 132 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:167:7: note: 'class CMACHO' declared here 167 | class CMACHO : public CFileBuffer { | ^~~~~~ elf2asm.cpp: In member function 'void CELF2ASM::MakeSymbolList() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': elf2asm.cpp:244:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 244 | if (Section > 0) break; | ^~ elf2asm.cpp:246:13: note: here 246 | case STB_GLOBAL: | ^~~~ elf.cpp: In instantiation of 'void CELF::Dump(int) [with TFileHeader = Elf64_Ehdr; TSectionHeader = Elf64_Shdr; TSymbol = Elf64_Sym; TRelocation = Elf64_Rela]': elf.cpp:574:16: required from here 574 | template class CELF; | ^~~~~~~~~~~~~~~~~~~~~ elf.cpp:347:68: warning: comparison of integer expressions of different signedness: 'int32' {aka 'int'} and 'uint32' {aka 'unsigned int'} [-Wsign-compare] 347 | if (pHeader.p_filesz < 0x100 && (int32)pHeader.p_offset < GetDataSize() && memchr(Buf()+pHeader.p_offset, 0, (uint32)pHeader.p_filesz)) { | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ elf2mac.cpp: In instantiation of 'void CELF2MAC::Elf2MacRelocations(Elf32_Shdr&, MAC_section_32&, uint32, uint32) [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela; TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; uint32 = unsigned int]': elf2mac.cpp:1097:16: required from here 1097 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:387:151: warning: unused parameter 'oldsec' [-Wunused-parameter] 387 | void CELF2MAC::Elf2MacRelocations(Elf32_Shdr & OldRelHeader, MAC_section_32 & NewHeader, uint32 NewRawDataOffset, uint32 oldsec) { | ~~~~~~~^~~~~~ elf2mac.cpp: In instantiation of 'void CELF2MAC::Elf2MacRelocations(Elf64_Shdr&, MAC_section_64&, uint32, uint32) [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela; TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; uint32 = unsigned int]': elf2mac.cpp:1097:16: required from here 1097 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:587:151: warning: unused parameter 'oldsec' [-Wunused-parameter] 587 | void CELF2MAC::Elf2MacRelocations(Elf64_Shdr & OldRelHeader, MAC_section_64 & NewHeader, uint32 NewRawDataOffset, uint32 oldsec) { | ~~~~~~~^~~~~~ containers.h: In instantiation of 'void CArrayBuf::SetNum(uint32) [with RecordType = CFileBuffer; uint32 = unsigned int]': cmdline.cpp:177:29: required from here 177 | ResponseFiles.SetNum(MAX_COMMAND_FILES); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ containers.h:197:19: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CFileBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 197 | memset(buffer, 0, n*sizeof(RecordType));// Initialize to zero | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:122:7: note: 'class CFileBuffer' declared here 122 | class CFileBuffer : public CMemoryBuffer { | ^~~~~~~~~~~ containers.h: In instantiation of 'void CArrayBuf::SetZero() [with RecordType = CFileBuffer]': cmdline.cpp:178:30: required from here 178 | ResponseFiles.SetZero(); | ~~~~~~~~~~~~~~~~~~~~~^~ containers.h:211:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CFileBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 211 | memset(buffer, 0, num*sizeof(RecordType)); // Warning: overwrites all members of RecordType with 0 | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:122:7: note: 'class CFileBuffer' declared here 122 | class CFileBuffer : public CMemoryBuffer { | ^~~~~~~~~~~ elf2asm.cpp: In member function 'void CELF2ASM::MakeSymbolList() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': elf2asm.cpp:244:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 244 | if (Section > 0) break; | ^~ elf2asm.cpp:246:13: note: here 246 | case STB_GLOBAL: | ^~~~ elf2mac.cpp: In instantiation of 'CELF2MAC::CELF2MAC() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela; TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int]': elf2mac.cpp:1098:16: required from here 1098 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:19:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CELF2MAC'; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this, 0, sizeof(*this)); // Reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:314:7: note: 'class CELF2MAC' declared here 314 | class CELF2MAC : public CELF { | ^~~~~~~~ cmdline.cpp: In member function 'void CCommandLineInterpreter::InterpretCommandOption(char*)': cmdline.cpp:311:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 311 | if (strncmp(string,"countinstructions", 17) == 0) { | ^~ cmdline.cpp:316:5: note: here 316 | default: // Unknown option | ^~~~~~~ containers.h: In instantiation of 'void CArrayBuf::SetNum(uint32) [with RecordType = CMemoryBuffer; uint32 = unsigned int]': cof2elf.cpp:29:22: required from 'void CCOF2ELF::Convert() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]' 29 | NewSections.SetNum(MaxSectionsNew); // Allocate buffers for each section | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ cof2elf.cpp:825:16: required from here 825 | template class CCOF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:197:19: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMemoryBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 197 | memset(buffer, 0, n*sizeof(RecordType));// Initialize to zero | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:91:7: note: 'class CMemoryBuffer' declared here 91 | class CMemoryBuffer { | ^~~~~~~~~~~~~ containers.h: In instantiation of 'void CArrayBuf::SetZero() [with RecordType = CMemoryBuffer]': cof2elf.cpp:30:23: required from 'void CCOF2ELF::Convert() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]' 30 | NewSections.SetZero(); // Initialize | ~~~~~~~~~~~~~~~~~~~^~ cof2elf.cpp:825:16: required from here 825 | template class CCOF2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:211:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMemoryBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 211 | memset(buffer, 0, num*sizeof(RecordType)); // Warning: overwrites all members of RecordType with 0 | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:91:7: note: 'class CMemoryBuffer' declared here 91 | class CMemoryBuffer { | ^~~~~~~~~~~~~ mac2elf.cpp: In instantiation of 'CMAC2ELF::CMAC2ELF() [with TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int; TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': mac2elf.cpp:1267:16: required from here 1267 | template class CMAC2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mac2elf.cpp:20:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMAC2ELF'; use assignment or value-initialization instead [-Wclass-memaccess] 20 | memset(this, 0, sizeof(*this)); // Reset everything | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ converters.h:351:7: note: 'class CMAC2ELF' declared here 351 | class CMAC2ELF : public CMACHO { | ^~~~~~~~ cmdline.cpp: In member function 'int CCommandLineInterpreter::SymbolChange(const char*, const char**, int)': cmdline.cpp:1015:22: warning: this statement may fall through [-Wimplicit-fallthrough=] 1015 | *newname = psym->Name2; | ~~~~~~~~~^~~~~~~~~~~~~ cmdline.cpp:1017:9: note: here 1017 | case SYMA_DELETE_MEMBER: case SYMA_ADD_MEMBER: | ^~~~ elf2cof.cpp: In member function 'void CELF2COF::MakeSections() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': elf2cof.cpp:253:35: warning: this statement may fall through [-Wimplicit-fallthrough=] 253 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:255:22: note: here 255 | case R_386_32: // 32-bit absolute virtual address | ^~~~ elf2cof.cpp:301:35: warning: this statement may fall through [-Wimplicit-fallthrough=] 301 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:303:22: note: here 303 | case R_X86_64_32S: // 32 bit absolute virtual address, sign extended | ^~~~ elf2cof.cpp: In member function 'void CELF2COF::MakeSymbolTable() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': elf2cof.cpp:520:26: warning: this statement may fall through [-Wimplicit-fallthrough=] 520 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:522:13: note: here 522 | case STT_FUNC: | ^~~~ elf2mac.cpp: In instantiation of 'void CELF2MAC::Elf2MacRelocations(Elf32_Shdr&, MAC_section_32&, uint32, uint32) [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela; TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int; uint32 = unsigned int]': elf2mac.cpp:1098:16: required from here 1098 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:387:151: warning: unused parameter 'oldsec' [-Wunused-parameter] 387 | void CELF2MAC::Elf2MacRelocations(Elf32_Shdr & OldRelHeader, MAC_section_32 & NewHeader, uint32 NewRawDataOffset, uint32 oldsec) { | ~~~~~~~^~~~~~ cof2elf.cpp: In member function 'void CCOF2ELF::MakeRelocationTables() [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': cof2elf.cpp:565:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 565 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ cof2elf.cpp:567:16: note: here 567 | case COFF32_RELOC_DIR32: // 32-bit absolute virtual address | ^~~~ elf2cof.cpp: In member function 'void CELF2COF::MakeSections() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': elf2cof.cpp:253:35: warning: this statement may fall through [-Wimplicit-fallthrough=] 253 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:255:22: note: here 255 | case R_386_32: // 32-bit absolute virtual address | ^~~~ cof2elf.cpp:618:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 618 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ cof2elf.cpp:621:16: note: here 621 | case COFF64_RELOC_ABS64: // 64 bit absolute virtual address | ^~~~ cof2elf.cpp:625:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 625 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ elf2cof.cpp:301:35: warning: this statement may fall through [-Wimplicit-fallthrough=] 301 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:303:22: note: here 303 | case R_X86_64_32S: // 32 bit absolute virtual address, sign extended | ^~~~ cof2elf.cpp:628:16: note: here 628 | case COFF64_RELOC_ABS32: // 32 bit absolute address | ^~~~ elf2mac.cpp: In instantiation of 'void CELF2MAC::Elf2MacRelocations(Elf64_Shdr&, MAC_section_64&, uint32, uint32) [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela; TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int; uint32 = unsigned int]': elf2mac.cpp:1098:16: required from here 1098 | template class CELF2MAC; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elf2mac.cpp:587:151: warning: unused parameter 'oldsec' [-Wunused-parameter] 587 | void CELF2MAC::Elf2MacRelocations(Elf64_Shdr & OldRelHeader, MAC_section_64 & NewHeader, uint32 NewRawDataOffset, uint32 oldsec) { | ~~~~~~~^~~~~~ elf2cof.cpp: In member function 'void CELF2COF::MakeSymbolTable() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': elf2cof.cpp:520:26: warning: this statement may fall through [-Wimplicit-fallthrough=] 520 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2cof.cpp:522:13: note: here 522 | case STT_FUNC: | ^~~~ cof2elf.cpp: In member function 'void CCOF2ELF::MakeRelocationTables() [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': cof2elf.cpp:565:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 565 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ cof2elf.cpp:567:16: note: here 567 | case COFF32_RELOC_DIR32: // 32-bit absolute virtual address | ^~~~ cof2elf.cpp:618:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 618 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ cof2elf.cpp:621:16: note: here 621 | case COFF64_RELOC_ABS64: // 64 bit absolute virtual address | ^~~~ cof2elf.cpp:625:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 625 | err.submit(2014); // Error message | ~~~~~~~~~~^~~~~~ cof2elf.cpp:628:16: note: here 628 | case COFF64_RELOC_ABS32: // 32 bit absolute address | ^~~~ disasm1.cpp: In member function 'void CDisassembler::FindMapEntry()': disasm1.cpp:2646:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 2646 | *(uint32*)&PreviousOpcodei = *(uint32*)&Opcodei; | ^~~~~~~~~~~~~~~~~~~~~~~~~ disasm1.cpp:2646:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 2646 | *(uint32*)&PreviousOpcodei = *(uint32*)&Opcodei; | ^~~~~~~~~~~~~~~~~ disasm1.cpp:2647:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 2647 | *(uint32*)&Opcodei = 0; | ^~~~~~~~~~~~~~~~~ elf2mac.cpp: In member function 'void CELF2MAC::Elf2MacRelocations(Elf32_Shdr&, MAC_section_32&, uint32, uint32) [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela; TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int]': elf2mac.cpp:490:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 490 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2mac.cpp:492:7: note: here 492 | case R_386_32: // 32-bit absolute virtual address | ^~~~ elf2mac.cpp: In member function 'void CELF2MAC::Elf2MacRelocations(Elf64_Shdr&, MAC_section_64&, uint32, uint32) [with TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela; TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int]': elf2mac.cpp:698:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 698 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2mac.cpp:700:7: note: here 700 | case R_X86_64_32: case R_X86_64_32S: { | ^~~~ containers.h: In instantiation of 'void CArrayBuf::SetNum(uint32) [with RecordType = CMemoryBuffer; uint32 = unsigned int]': mac2elf.cpp:35:22: required from 'void CMAC2ELF::Convert() [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]' 35 | NewSections.SetNum(MaxSectionsNew+1); // Allocate buffers for each section | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ mac2elf.cpp:1266:16: required from here 1266 | template class CMAC2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:197:19: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMemoryBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 197 | memset(buffer, 0, n*sizeof(RecordType));// Initialize to zero | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:91:7: note: 'class CMemoryBuffer' declared here 91 | class CMemoryBuffer { | ^~~~~~~~~~~~~ containers.h: In instantiation of 'void CArrayBuf::SetZero() [with RecordType = CMemoryBuffer]': mac2elf.cpp:36:23: required from 'void CMAC2ELF::Convert() [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]' 36 | NewSections.SetZero(); // Initialize | ~~~~~~~~~~~~~~~~~~~^~ mac2elf.cpp:1266:16: required from here 1266 | template class CMAC2ELF; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:211:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CMemoryBuffer'; use assignment or value-initialization instead [-Wclass-memaccess] 211 | memset(buffer, 0, num*sizeof(RecordType)); // Warning: overwrites all members of RecordType with 0 | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ containers.h:91:7: note: 'class CMemoryBuffer' declared here 91 | class CMemoryBuffer { | ^~~~~~~~~~~~~ elf2mac.cpp: In member function 'void CELF2MAC::Elf2MacRelocations(Elf32_Shdr&, MAC_section_32&, uint32, uint32) [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela; TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int]': elf2mac.cpp:490:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 490 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2mac.cpp:492:7: note: here 492 | case R_386_32: // 32-bit absolute virtual address | ^~~~ elf2mac.cpp: In member function 'void CELF2MAC::Elf2MacRelocations(Elf64_Shdr&, MAC_section_64&, uint32, uint32) [with TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela; TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int]': elf2mac.cpp:698:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 698 | err.submit(1063); // Warning: Gnu indirect function cannot be converted | ~~~~~~~~~~^~~~~~ elf2mac.cpp:700:7: note: here 700 | case R_X86_64_32: case R_X86_64_32S: { | ^~~~ mac2elf.cpp: In member function 'void CMAC2ELF::MakeRelocationTables(MAC_header_64&) [with TMAC_header = MAC_header_32; TMAC_segment_command = MAC_segment_command_32; TMAC_section = MAC_section_32; TMAC_nlist = MAC_nlist_32; MInt = int; TELF_Header = Elf32_Ehdr; TELF_SectionHeader = Elf32_Shdr; TELF_Symbol = Elf32_Sym; TELF_Relocation = Elf32_Rela]': mac2elf.cpp:971:31: warning: this statement may fall through [-Wimplicit-fallthrough=] 971 | *inlinep = -4; | ~~~~~~~~~^~~~ mac2elf.cpp:973:19: note: here 973 | case MAC64_RELOC_GOT: // other GOT references | ^~~~ mac2elf.cpp: In member function 'void CMAC2ELF::MakeRelocationTables(MAC_header_64&) [with TMAC_header = MAC_header_64; TMAC_segment_command = MAC_segment_command_64; TMAC_section = MAC_section_64; TMAC_nlist = MAC_nlist_64; MInt = long long int; TELF_Header = Elf64_Ehdr; TELF_SectionHeader = Elf64_Shdr; TELF_Symbol = Elf64_Sym; TELF_Relocation = Elf64_Rela]': mac2elf.cpp:971:31: warning: this statement may fall through [-Wimplicit-fallthrough=] 971 | *inlinep = -4; | ~~~~~~~~~^~~~ mac2elf.cpp:973:19: note: here 973 | case MAC64_RELOC_GOT: // other GOT references | ^~~~ disasm2.cpp: In member function 'void CDisassembler::WriteImmediateOperand(uint32)': disasm2.cpp:1026:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 1026 | if ((Type & 0xFF) == 0x12) { | ^~ disasm2.cpp:1032:5: note: here 1032 | default: // Other sizes should not occur | ^~~~~~~ disasm1.cpp:2717:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 2717 | if (s.Prefixes[4] == 0x48) { // REX.W prefix = 64 bit | ^~ disasm1.cpp:2721:13: note: here 2721 | case 32: default: | ^~~~ disasm1.cpp: In member function 'void CDisassembler::CheckForNops()': disasm1.cpp:4290:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 4290 | if (s.Mod < 3 && s.Reg+1 == s.BaseReg && s.IndexReg == 0 && | ^~ disasm1.cpp:4314:5: note: here 4314 | case 0x86: case 0x87: // XCHG | ^~~~ opcodes.cpp: At global scope: opcodes.cpp:4365:106: warning: missing initializer for member 'SOpcodeDef::Options' [-Wmissing-field-initializers] 4365 | {0, 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }}; // VEX 0F AF | ^ disasm1.cpp: In member function 'void CDisassembler::CheckNamesValid()': disasm1.cpp:4498:26: warning: 'ValidCharacters' may be used uninitialized [-Wmaybe-uninitialized] 4498 | || strchr(ValidCharacters, c))) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~ disasm1.cpp:4454:18: note: 'ValidCharacters' was declared here 4454 | const char * ValidCharacters; // List of valid characters in symbol names | ^~~~~~~~~~~~~~~ g++ -o objconv cmdline.o cof2asm.o cof2cof.o cof2elf.o cof2omf.o coff.o containers.o disasm1.o disasm2.o elf.o elf2asm.o elf2cof.o elf2elf.o elf2mac.o error.o library.o mac2asm.o mac2elf.o mac2mac.o macho.o main.o omf.o omf2asm.o omf2cof.o omfhash.o opcodes.o stdafx.o >>> objconv: Entering fakeroot... >>> objconv*: Running postcheck for objconv >>> objconv*: Preparing package objconv... >>> objconv*: Stripping binaries >>> objconv*: Scanning shared objects >>> objconv*: Tracing dependencies... so:libc.musl-loongarch64.so.1 so:libgcc_s.so.1 so:libstdc++.so.6 >>> objconv*: Package size: 788.0 KB >>> objconv*: Compressing data... >>> objconv*: Create checksum... >>> objconv*: Create objconv-2.52_git20210213-r2.apk >>> objconv: Build complete at Sun, 22 Sep 2024 12:24:49 +0000 elapsed time 0h 0m 15s >>> objconv: Cleaning up srcdir >>> objconv: Cleaning up pkgdir >>> objconv: Uninstalling dependencies... (1/1) Purging .makedepends-objconv (20240922.122444) OK: 251 MiB in 103 packages >>> objconv: Updating the testing/loongarch64 repository index... >>> objconv: Signing the index...