* Package: sys-fs/diskdev_cmds-332.14_p1-r2 * Repository: gentoo * Maintainer: ppc@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking diskdev_cmds-332.14.tar.gz to /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work >>> Unpacking diskdev_cmds-332.14_p1.patch.bz2 to /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work >>> Source unpacked in /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work >>> Preparing source in /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14 ... * Applying diskdev_cmds-332.14_p1.patch ... [ ok ] * Applying diskdev_cmds-respect-cflags.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14 ... make -j4 -f Makefile.lnx AR=x86_64-pc-linux-gnu-ar CC=x86_64-pc-linux-gnu-gcc for d in newfs_hfs.tproj fsck_hfs.tproj; do make -C $d -f Makefile.lnx all; done make[1]: Entering directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/newfs_hfs.tproj' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o hfs_endian.o hfs_endian.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o makehfs.o makehfs.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o newfs_hfs.o newfs_hfs.c In file included from makehfs.c:40: /usr/include/sys/sysctl.h:21:2: warning: #warning "The header is deprecated and will be removed." []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp-Wcpp]8;;] 21 | #warning "The header is deprecated and will be removed." | ^~~~~~~ newfs_hfs.c: In function ‘hfsplus_params’: newfs_hfs.c:809:15: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 809 | printf("%lld sectors (%u bytes per sector)\n", sectorCount, sectorSize); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld makehfs.c: In function ‘make_hfsplus’: makehfs.c:334:11: warning: variable ‘sectorsPerNode’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 334 | UInt32 sectorsPerNode; | ^~~~~~~~~~~~~~ makehfs.c: In function ‘InitMDB’: makehfs.c:571:33: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 571 | mdbp->drVN[0] = strlen(defaults->volumeName); | ~~~~~~~~^~~~~~~~~~~~ | | | unsigned char * In file included from makehfs.c:51: /usr/include/string.h:385:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 385 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ makehfs.c:604:37: warning: taking address of packed member of ‘struct HFSMasterDirectoryBlock’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 604 | finderInfoUUIDPtr = (VolumeUUID *)(&mdbp->drFndrInfo[6]); | ~^~~~~~~~~~~~~~~~~~~~~ makehfs.c: In function ‘InitCatalogRoot_HFSPlus’: makehfs.c:1145:83: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1145 | dp->volumeName, sizeof(ckp->nodeName.unicode), ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1145:93: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1145 | Name, sizeof(ckp->nodeName.unicode), ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:1216:44: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1216 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1216:54: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1216 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:1249:44: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1249 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1249:54: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1249 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c: In function ‘WriteBuffer’: makehfs.c:1851:27: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off_t’ {aka ‘long int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1851 | err(1, "seek (sector %lld)", sector); | ~~~^ ~~~~~~ | | | | | off_t {aka long int} | long long int | %ld makehfs.c:1854:28: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off_t’ {aka ‘long int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1854 | err(1, "write (sector %lld, %i bytes)", sector, byteCount); | ~~~^ ~~~~~~ | | | | long long int off_t {aka long int} | %ld In file included from /usr/include/string.h:495, from makehfs.c:51: In function ‘strncpy’, inlined from ‘GenerateVolumeUUID’ at makehfs.c:2137:3: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 26 equals destination size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-truncation-Wstringop-truncation]8;;] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -o newfs_hfs hfs_endian.o makehfs.o newfs_hfs.o -lcrypto make[1]: Leaving directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/newfs_hfs.tproj' make[1]: Entering directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/fsck_hfs.tproj' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o fsck_hfs.o fsck_hfs.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o strings.o strings.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o utilities.o utilities.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o cache.o cache.c make -C dfalib -f Makefile.lnx libdfa.a make[2]: Entering directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/fsck_hfs.tproj/dfalib' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o hfs_endian.o hfs_endian.c fsck_hfs.c: In function ‘checkfilesys’: fsck_hfs.c:199:6: warning: variable ‘flags’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 199 | int flags; | ^~~~~ hfs_endian.c: In function ‘hfs_swap_HFSPlusBTInternalNode’: hfs_endian.c:566:98: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 566 | _HFSPlusBTInternalNode: catalog record #%d keyLength=%d expected=%i\n", | ~^ | | | int | %li 567 | Length, sizeof(srcKey->parentID) + sizeof(srcKey->nodeName.length) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int 568 | eName.length*sizeof(srcKey->nodeName.unicode[0])); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BlockCache.o BlockCache.c In file included from /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include/missing.h:5, from hfs_endian.c:35: hfs_endian.c: In function ‘hfs_swap_HFSBTInternalNode’: hfs_endian.c:1052:90: warning: iteration 3 invokes undefined behavior []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waggressive-loop-optimizations-Waggressive-loop-optimizations]8;;] 1052 | ataExtents[j].startBlock = SWAP_BE16 (srcRec->dataExtents[j].startBlock); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include/missing.h:75:34: note: in expansion of macro ‘be16_to_cpu’ 75 | #define OSSwapBigToHostInt16(x) be16_to_cpu(x) | ^~~~~~~~~~~ hfs_endian.h:43:31: note: in expansion of macro ‘OSSwapBigToHostInt16’ 43 | #define SWAP_BE16(__a) OSSwapBigToHostInt16 (__a) | ^~~~~~~~~~~~~~~~~~~~ hfs_endian.c:1052:57: note: in expansion of macro ‘SWAP_BE16’ 1052 | srcRec->dataExtents[j].startBlock = SWAP_BE16 (srcRec->dataExtents[j].startBlock); | ^~~~~~~~~ hfs_endian.c:1051:17: note: within this loop 1051 | for (j = 0; j < kHFSExtentDensity * 2; j++) { | ^~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTree.o BTree.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTreeAllocate.o BTreeAllocate.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTreeMiscOps.o BTreeMiscOps.c BTreeMiscOps.c: In function ‘TrySimpleReplace’: BTreeMiscOps.c:499:13: warning: variable ‘didItFit’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 499 | Boolean didItFit; | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTreeNodeOps.o BTreeNodeOps.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTreeScanner.o BTreeScanner.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o BTreeTreeOps.o BTreeTreeOps.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o CatalogCheck.o CatalogCheck.c BTreeTreeOps.c: In function ‘InsertLevel’: BTreeTreeOps.c:436:13: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 436 | DebugStr("InsertLevel: New root from primary key, update from secondary key..."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from BTreePrivate.h:39, from BTreeTreeOps.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ BTreeTreeOps.c: In function ‘InsertNode’: BTreeTreeOps.c:562:13: warning: variable ‘rightNodeNum’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 562 | UInt32 rightNodeNum; | ^~~~~~~~~~~~ BTreeTreeOps.c: In function ‘AddNewRootNode’: BTreeTreeOps.c:1240:13: warning: variable ‘didItFit’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 1240 | Boolean didItFit; | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o HardLinkCheck.o HardLinkCheck.c CatalogCheck.c: In function ‘CheckDirectory’: CatalogCheck.c:437:41: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 437 | CheckCatalogName(key->nodeName.length, &key->nodeName.unicode[0], key->parentID, false); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CatalogCheck.c: In function ‘CheckFile’: CatalogCheck.c:459:36: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 459 | (void) utf_encodestr(key->nodeName.unicode, | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c:545:41: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 545 | CheckCatalogName(key->nodeName.length, &key->nodeName.unicode[0], key->parentID, false); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CatalogCheck.c: In function ‘CheckThread’: CatalogCheck.c:565:53: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 565 | result = CheckCatalogName(thread->nodeName.length, &thread->nodeName.unicode[0], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CatalogCheck.c: In function ‘UniqueDotName’: CatalogCheck.c:1048:5: warning: this ‘else’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 1048 | else | ^~~~ CatalogCheck.c:1051:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 1051 | nameLen = strlen((char *) myPtr ); | ^~~~~~~ CatalogCheck.c: In function ‘RecordTruncation’: CatalogCheck.c:1155:25: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1155 | sprintf(oldSizeStr, "%qd", oldSize); | ~~^ ~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld CatalogCheck.c:1156:25: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1156 | sprintf(newSizeStr, "%qd", newSize); | ~~^ ~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld CatalogCheck.c: In function ‘FixDecomps’: CatalogCheck.c:1294:29: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1294 | u_int16_t * outNamePtr = outFilename->unicode; | ^~~~~~~~~~~ CatalogCheck.c:1296:32: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1296 | u_int16_t * outNameLastPtr = &outFilename->unicode[kHFSPlusMaxFileNameChars - 1]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HardLinkCheck.c: In function ‘CheckHardLinks’: HardLinkCheck.c:246:38: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 246 | (void) utf_encodestr(keyp->nodeName.unicode, | ~~~~~~~~~~~~~~^~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SBTree.o SBTree.c SBTree.c: In function ‘SearchBTreeRecord’: SBTree.c:96:13: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 96 | DebugStr("SearchBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function ‘GetBTreeRecord’: SBTree.c:193:13: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 193 | DebugStr("GetBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function ‘InsertBTreeRecord’: SBTree.c:225:12: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 225 | DebugStr("InsertBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function ‘ReplaceBTreeRecord’: SBTree.c:287:12: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 287 | DebugStr("ReplaceBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function ‘SetEndOfForkProc’: SBTree.c:326:13: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 326 | DebugStr("SetEndOfForkProc: minEOF is smaller than current size!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function ‘CheckBTreeKey’: SBTree.c:424:13: warning: pointer targets in passing argument 1 of ‘DebugStr’ differ in signedness []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-sign-Wpointer-sign]8;;] 424 | DebugStr("CheckBTreeKey: bad key length!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:141:27: note: expected ‘ConstStr255Param’ {aka ‘const unsigned char *’} but argument is of type ‘char *’ 141 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SControl.o SControl.c SControl.c: In function ‘ScavSetUp’: SControl.c:742:48: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 742 | printf( "\t error %d - could not allocate %i bytes of memory \n", | ~^ | | | int | %li 743 | R_NoMem, sizeof(ScavStaticStructures) ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int SControl.c:720:9: warning: variable ‘err’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 720 | OSErr err; | ^~~ SControl.c: In function ‘ScavTerm’: SControl.c:984:25: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 984 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:986:9: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 986 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ In file included from Scavenger.h:31, from SControl.c:43: SControl.c:988:21: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 988 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:401:43: note: in definition of macro ‘DisposeMemory’ 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:991:20: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 991 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:401:43: note: in definition of macro ‘DisposeMemory’ 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:993:21: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 993 | btcbP->refCon = (UInt32)nil; | ^ SControl.c:999:25: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 999 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:1001:9: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1001 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ In file included from Scavenger.h:31, from SControl.c:43: SControl.c:1003:21: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1003 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:401:43: note: in definition of macro ‘DisposeMemory’ 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:1006:20: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1006 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:401:43: note: in definition of macro ‘DisposeMemory’ 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:1008:21: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1008 | btcbP->refCon = (UInt32)nil; | ^ SControl.c:954:10: warning: variable ‘err’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 954 | OSErr err; | ^~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SVerify1.o SVerify1.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SVerify2.o SVerify2.c SVerify1.c: In function ‘CheckForClean’: SVerify1.c:164:53: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 164 | printf( "\t%s - could not get VHB/MDB at block %qd \n", __FUNCTION__, blockNum ); | ~~^ ~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:143:18: warning: variable ‘myVOPtr’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 143 | VolumeObjectPtr myVOPtr; | ^~~~~~~ SVerify1.c: In function ‘IVChk’: SVerify1.c:266:72: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 266 | \tinvalid device information for volume - total sectors = %qd sector size = %d \n", | ~~^ | | | long long int | %ld 267 | ->totalDeviceSectors, myVOPtr->sectorSize); | ~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SVerify1.c: In function ‘CreateExtentsBTreeControlBlock’: SVerify1.c:780:17: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 780 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:781:23: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 781 | if ( btcb->refCon == (UInt32) nil ) { | ^ SVerify1.c:786:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 786 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:787:8: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 787 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:793:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 793 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:794:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 794 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes;// keep track of real free nodes for progress | ^ SVerify1.c: In function ‘CreateCatalogBTreeControlBlock’: SVerify1.c:1124:17: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1124 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1125:23: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1125 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1130:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1130 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1131:8: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1131 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1137:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1137 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1138:3: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1138 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes; // keep track of real free nodes for progress | ^ SVerify1.c:1153:55: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1153 | (void) utf_encodestr( recPtr->nodeName.unicode, | ~~~~~~~~~~~~~~~~^~~~~~~~ SVerify1.c: In function ‘CreateAttributesBTreeControlBlock’: SVerify1.c:1763:17: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1763 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1764:23: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1764 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1771:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1771 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = nil; | ^ SVerify1.c:1772:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1772 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = 0; | ^ SVerify1.c:1773:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1773 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = 0; | ^ SVerify1.c:1777:24: warning: cast from pointer to integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wpointer-to-int-cast-Wpointer-to-int-cast]8;;] 1777 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1782:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1782 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1783:9: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1783 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1789:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1789 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1790:4: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1790 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes; // keep track of real free nodes for progress | ^ SVerify1.c: In function ‘VInfoChk’: SVerify1.c:2178:42: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 2178 | printf("\tinvalid alternate MDB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2183:42: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 2183 | printf("\tinvalid alternate VHB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2206:40: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 2206 | printf("\tinvalid primary MDB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2211:40: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 2211 | printf("\tinvalid primary VHB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify2.c: In function ‘CmpBTH’: SVerify2.c:688:6: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 688 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:691:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 691 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:693:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 693 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:696:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 696 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:698:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 698 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:701:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 701 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:703:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 703 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:706:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 706 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:708:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 708 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:711:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 711 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:713:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 713 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:716:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 716 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:718:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 718 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:721:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 721 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c:723:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 723 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SVerify2.c:726:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 726 | isBTHDamaged = 1; | ^~~~~~~~~~~~ SVerify2.c: In function ‘CmpBTM’: SVerify2.c:822:11: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 822 | sbtmP = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr; | ^ SVerify2.c: In function ‘CompareVolumeHeader’: SVerify2.c:1194:12: warning: variable ‘goodValue’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 1194 | UInt32 goodValue, badValue; | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SRepair.o SRepair.c SRepair.c: In function ‘UpdBTM’: SRepair.c:621:15: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 621 | mapSize = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMSize; | ^ SRepair.c:630:12: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 630 | sbtmP = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr; | ^ SRepair.c: In function ‘FixLinkCount’: SRepair.c:1154:62: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1154 | (void) utf_decodestr(&p->name[1], p->name[0], keyp->nodeName.unicode, &len); | ~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function ‘FixBSDInfo’: SRepair.c:1340:42: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1340 | utf_encodestr(((HFSUniStr255 *)&p->name)->unicode, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ SRepair.c: In function ‘DeleteUnlinkedFile’: SRepair.c:1394:58: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1394 | (void) utf_decodestr(&p->name[1], p->name[0], name.ustr.unicode, &len); | ~~~~~~~~~^~~~~~~~ SRepair.c: In function ‘FixFileSize’: SRepair.c:1440:62: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 1440 | (void) utf_decodestr(&p->name[1], p->name[0], keyp->nodeName.unicode, &len); | ~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function ‘RepairReservedBTreeFields’: SRepair.c:2055:26: warning: taking address of packed member of ‘struct HFSCatalogThread’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 2055 | reserved = (UInt32*) &(record.hfsThread.reserved); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SRebuildCatalogBTree.o SRebuildCatalogBTree.c SRepair.c: In function ‘MoveExtent’: SRepair.c:2801:10: warning: variable ‘isHFSPlus’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 2801 | Boolean isHFSPlus; | ^~~~~~~~~ SRepair.c: In function ‘SearchExtentInVH’: SRepair.c:3095:13: warning: dereferencing type-punned pointer will break strict-aliasing rules []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing-Wstrict-aliasing]8;;] 3095 | (*(HFSPlusExtentRecord *)fcb->fcbExtents16), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SRepair.c: In function ‘SearchExtentInCatalogBT’: SRepair.c:3216:13: warning: dereferencing type-punned pointer will break strict-aliasing rules []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing-Wstrict-aliasing]8;;] 3216 | (*(HFSPlusExtentRecord *)catRecord->hfsFile.dataExtents), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SRepair.c:3222:13: warning: dereferencing type-punned pointer will break strict-aliasing rules []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing-Wstrict-aliasing]8;;] 3222 | (*(HFSPlusExtentRecord *)catRecord->hfsFile.rsrcExtents), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SRepair.c: In function ‘GetFileNamePathByID’: SRepair.c:3601:57: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 3601 | (void) utf_encodestr(catRecord.hfsPlusThread.nodeName.unicode, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function ‘FixMissingThreadRecords’: SRepair.c:3972:5: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 3972 | if ( GPtr->logLevel >= kDebugLog ) | ^~ SRepair.c:3974:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 3974 | printf ("result = %d\n", (int) result); | ^~~~~~ SRepair.c: In function ‘CreateFileByName’: SRepair.c:4173:59: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 4173 | (void) utf_decodestr (fileName, filenameLen, fName.ustr.unicode, &namelen); | ~~~~~~~~~~^~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SUtils.o SUtils.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SKeyCompare.o SKeyCompare.c SUtils.c: In function ‘AllocBTN’: SUtils.c:257:12: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 257 | byteP = ( (BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr + (nodeNumber / 8 ); // ptr to starting byte | ^ In file included from /usr/include/strings.h:144, from /usr/include/string.h:432, from SRuntime.h:36, from Scavenger.h:31, from SVerify1.c:35: In function ‘bcopy’, inlined from ‘VLockedChk’ at SVerify1.c:2514:3: SUtils.c: In function ‘AllocMinorRepairOrder’: SUtils.c:354:10: warning: this ‘if’ clause does not guard... []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmisleading-indentation-Wmisleading-indentation]8;;] 354 | else if ( GPtr->logLevel >= kDebugLog ) | ^~ /usr/include/bits/strings_fortified.h:25:10: warning: ‘__builtin_memcpy’ forming offset [15, 27] is out of the bounds [0, 15] []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Warray-bounds-Warray-bounds]8;;] 25 | (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SUtils.c:357:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 357 | if ( GPtr->RepLevel == repairLevelNoProblemsFound ) | ^~ SUtils.c: In function ‘InitializeVolumeObject’: SUtils.c:1104:72: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1104 | \tinvalid device information for volume - total sectors = %qd sector size = %d \n", | ~~^ | | | long long int | %ld 1105 | ->totalDeviceSectors, myVOPtr->sectorSize); | ~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1179:24: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1179 | printf( "\tBlock %qd is not an MDB or Volume Header \n", myVOPtr->totalDeviceSectors - 2 ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1187:58: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1187 | printf( "\tcould not get alternate volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1188 | myVOPtr->totalDeviceSectors - 2, err ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1214:53: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1214 | printf( "\tcould not get primary MDB at block %qd, err %d \n", myVOPtr->primaryMDB, err ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c: In function ‘PrintVolumeObject’: SUtils.c:1264:39: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1264 | printf( "\tprimary MDB is at block %qd 0x%02qx \n", myVOPtr->primaryMDB, myVOPtr->primaryMDB ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1264:47: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1264 | printf( "\tprimary MDB is at block %qd 0x%02qx \n", myVOPtr->primaryMDB, myVOPtr->primaryMDB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1265:41: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1265 | printf( "\talternate MDB is at block %qd 0x%02qx \n", myVOPtr->alternateMDB, myVOPtr->alternateMDB ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1265:49: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1265 | printf( "\talternate MDB is at block %qd 0x%02qx \n", myVOPtr->alternateMDB, myVOPtr->alternateMDB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1266:39: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1266 | printf( "\tprimary VHB is at block %qd 0x%02qx \n", myVOPtr->primaryVHB, myVOPtr->primaryVHB ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1266:47: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1266 | printf( "\tprimary VHB is at block %qd 0x%02qx \n", myVOPtr->primaryVHB, myVOPtr->primaryVHB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1267:41: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1267 | printf( "\talternate VHB is at block %qd 0x%02qx \n", myVOPtr->alternateVHB, myVOPtr->alternateVHB ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1267:49: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1267 | printf( "\talternate VHB is at block %qd 0x%02qx \n", myVOPtr->alternateVHB, myVOPtr->alternateVHB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1270:42: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1270 | printf( "\ttotal sectors for volume = %qd 0x%02qx \n", | ~~^ | | | long long int | %ld 1271 | myVOPtr->totalDeviceSectors, myVOPtr->totalDeviceSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1270:50: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1270 | printf( "\ttotal sectors for volume = %qd 0x%02qx \n", | ~~~~^ | | | long long unsigned int | %02lx 1271 | myVOPtr->totalDeviceSectors, myVOPtr->totalDeviceSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1272:51: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1272 | printf( "\ttotal sectors for embedded volume = %qd 0x%02qx \n", | ~~^ | | | long long int | %ld 1273 | myVOPtr->totalEmbeddedSectors, myVOPtr->totalEmbeddedSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1272:59: warning: format ‘%qx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1272 | printf( "\ttotal sectors for embedded volume = %qd 0x%02qx \n", | ~~~~^ | | | long long unsigned int | %02lx 1273 | myVOPtr->totalEmbeddedSectors, myVOPtr->totalEmbeddedSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c: In function ‘GetEmbeddedVolumeHeaders’: SUtils.c:1353:69: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1353 | ntf( "\tInvalid embedded alternate volume header at block %qd - error %d \n", myAlternateBlockNum, err ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1359:31: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1359 | printf( "\tBlock number %qd is not embedded alternate volume header \n", myAlternateBlockNum ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1366:67: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1366 | ntf( "\tcould not get embedded alternate volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1367 | yAlternateBlockNum, err ); | ~~~~~~~~~~~~~~~~~~ SUtils.c:1389:67: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1389 | rintf( "\tInvalid embedded primary volume header at block %qd - error %d \n", myPrimaryBlockNum, err ); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1395:31: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1395 | printf( "\tBlock number %qd is not embedded primary volume header \n", myPrimaryBlockNum ); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1402:65: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 1402 | rintf( "\tcould not get embedded primary volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1403 | myPrimaryBlockNum, err ); | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c: In function ‘CalculateItemCount’: SUtils.c:1897:19: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1897 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SUtils.c:1901:19: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1901 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SUtils.c:1907:20: warning: cast to pointer from integer of different size []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-to-pointer-cast-Wint-to-pointer-cast]8;;] 1907 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SUtils.c:1883:19: warning: variable ‘myVOPtr’ set but not used []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-but-set-variable-Wunused-but-set-variable]8;;] 1883 | VolumeObjectPtr myVOPtr; | ^~~~~~~ SKeyCompare.c: In function ‘CompareExtendedCatalogKeys’: SKeyCompare.c:258:32: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 258 | result = FastUnicodeCompare(&searchKey->nodeName.unicode[0], searchKey->nodeName.length, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c:259:11: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 259 | &trialKey->nodeName.unicode[0], trialKey->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c: In function ‘CaseSensitiveCatalogKeyCompare’: SKeyCompare.c:292:19: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 292 | UInt16 * str1 = &searchKey->nodeName.unicode[0]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c:293:19: warning: taking address of packed member of ‘struct HFSUniStr255’ may result in an unaligned pointer value []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Waddress-of-packed-member-Waddress-of-packed-member]8;;] 293 | UInt16 * str2 = &trialKey->nodeName.unicode[0]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c: In function ‘CompareAttributeKeys’: SKeyCompare.c:475:19: warning: initialization discards ‘const’ qualifier from pointer target type []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers]8;;] 475 | UInt16 * str1 = searchKey->attrName; | ^~~~~~~~~ SKeyCompare.c:476:19: warning: initialization discards ‘const’ qualifier from pointer target type []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers]8;;] 476 | UInt16 * str2 = trialKey->attrName; | ^~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SDevice.o SDevice.c SDevice.c: In function ‘DeviceRead’: SDevice.c:234:33: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t’ {aka ‘long int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 234 | printf("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno); | ~~^ ~~~~~~ | | | | long long int int64_t {aka long int} | %ld SDevice.c: In function ‘DeviceWrite’: SDevice.c:286:33: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t’ {aka ‘long int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 286 | printf("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno); | ~~^ ~~~~~~ | | | | long long int int64_t {aka long int} | %ld x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SExtents.o SExtents.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SAllocate.o SAllocate.c In file included from /usr/include/strings.h:144, from /usr/include/string.h:432, from SRuntime.h:36, from BTree.h:37, from SExtents.c:37: In function ‘bzero’, inlined from ‘DeallocateFile’ at SExtents.c:701:3: /usr/include/bits/strings_fortified.h:31:10: warning: ‘__builtin___memset_chk’ forming offset [64, 75] is out of the bounds [0, 64] of object ‘dataForkExtents’ with type ‘HFSPlusExtentRecord’ {aka ‘HFSPlusExtentDescriptor[8]’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Warray-bounds-Warray-bounds]8;;] 31 | (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SExtents.c: In function ‘DeallocateFile’: SExtents.c:687:23: note: ‘dataForkExtents’ declared here 687 | HFSPlusExtentRecord dataForkExtents; | ^~~~~~~~~~~~~~~ In file included from /usr/include/strings.h:144, from /usr/include/string.h:432, from SRuntime.h:36, from BTree.h:37, from SExtents.c:37: In function ‘bzero’, inlined from ‘DeallocateFile’ at SExtents.c:704:3: /usr/include/bits/strings_fortified.h:31:10: warning: ‘__builtin___memset_chk’ forming offset [64, 75] is out of the bounds [0, 64] of object ‘rsrcForkExtents’ with type ‘HFSPlusExtentRecord’ {aka ‘HFSPlusExtentDescriptor[8]’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Warray-bounds-Warray-bounds]8;;] 31 | (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SExtents.c: In function ‘DeallocateFile’: SExtents.c:688:23: note: ‘rsrcForkExtents’ declared here 688 | HFSPlusExtentRecord rsrcForkExtents; | ^~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SCatalog.o SCatalog.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o SStubs.o SStubs.c SStubs.c: In function ‘WriteError’: SStubs.c:202:19: warning: format ‘%qd’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 202 | printf("(%ld, %qd)\n", (long)tarID, tarBlock); | ~~^ ~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -Wall -I/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -c -o VolumeBitmapCheck.o VolumeBitmapCheck.c ar rc libdfa.a hfs_endian.o BlockCache.o BTree.o BTreeAllocate.o BTreeMiscOps.o BTreeNodeOps.o BTreeScanner.o BTreeTreeOps.o CatalogCheck.o HardLinkCheck.o SBTree.o SControl.o SVerify1.o SVerify2.o SRepair.o SRebuildCatalogBTree.o SUtils.o SKeyCompare.o SDevice.o SExtents.o SAllocate.o SCatalog.o SStubs.o VolumeBitmapCheck.o make[2]: ar: No such file or directory make[2]: *** [Makefile.lnx:12: libdfa.a] Error 127 make[2]: Leaving directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/fsck_hfs.tproj/dfalib' make[1]: *** [Makefile.lnx:9: dfalib/libdfa.a] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14/fsck_hfs.tproj' make: *** [Makefile.lnx:6: all] Error 2 * ERROR: sys-fs/diskdev_cmds-332.14_p1-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-fs/diskdev_cmds-332.14_p1-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-fs/diskdev_cmds-332.14_p1-r2::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/sys-fs/diskdev_cmds-332.14_p1-r2:20200528-194220.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/temp/environment'. * Working directory: '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14' * S: '/var/tmp/portage/sys-fs/diskdev_cmds-332.14_p1-r2/work/diskdev_cmds-332.14' emerge --info: Portage 2.3.100 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.4.0-1009-aws x86_64) ================================================================= System uname: Linux-5.4.0-1009-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 16011344 total, 11741392 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 29 May 2020 02:35:29 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.2-r2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0::gentoo sys-devel/gcc-config: 2.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS