configure.ac:160: warning: The macro 'AC_CONFIG_HEADER' is obsolete.
configure.ac:160: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:160: the top level
configure.ac:241: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:241: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:241: the top level
configure.ac:245: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:245: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:245: the top level
configure.ac:249: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:249: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:249: the top level
configure.ac:252: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:252: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:252: the top level
configure.ac:256: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:256: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:256: the top level
configure.ac:259: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:259: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:259: the top level
configure.ac:262: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:262: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:262: the top level
configure.ac:591: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:591: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:591: the top level
configure.ac:609: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:609: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:609: the top level
configure.ac:853: warning: The macro 'AC_LANG_C' is obsolete.
configure.ac:853: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
acinclude.m4:163: AM_PATH_ALSA is expanded from...
configure.ac:853: the top level
configure.ac:853: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:853: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
acinclude.m4:163: AM_PATH_ALSA is expanded from...
configure.ac:853: the top level
configure.ac:977: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:977: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:977: the top level
configure.ac:1031: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1031: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1031: the top level
configure.ac:1041: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1041: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1041: the top level
configure.ac:1051: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1051: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1051: the top level
configure.ac:1059: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1059: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1059: the top level
configure.ac:1071: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1071: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1071: the top level
configure.ac:1144: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1144: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1144: the top level
configure.ac:1178: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1178: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1178: the top level
configure.ac:1182: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1182: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1182: the top level
configure.ac:1195: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1195: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1195: the top level
configure.ac:1216: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1216: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1216: the top level
configure.ac:1226: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1226: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1226: the top level
configure.ac:1227: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1227: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1227: the top level
configure.ac:1246: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1246: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1246: the top level
configure.ac:1289: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1289: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1289: the top level
configure.ac:1324: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1324: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1324: the top level
configure.ac:1392: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1392: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1392: the top level
configure.ac:1411: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1411: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1411: the top level
configure.ac:1427: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1427: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1427: the top level
configure.ac:1432: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1432: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1432: the top level
configure.ac:1535: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:1535: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:1535: the top level
configure.ac:26: installing './compile'
configure.ac:102: installing './config.guess'
configure.ac:102: installing './config.sub'
configure.ac:159: installing './install-sh'
configure.ac:159: installing './missing'
src/Makefile.am: installing './depcomp'
configure: WARNING: Can't find libpcap, ethernet pass-through disabled
In member function ‘uint8_t InitPageUserROHandler::InitPageCheckOnly(PhysPt)’,
inlined from ‘virtual bool InitPageUserROHandler::writeb_checked(PhysPt, uint8_t)’ at paging.cpp:1263:46:
paging.cpp:1342:66: warning: ‘entry.X86PageEntry::block.X86_PageEntryBlock::us’ may be used uninitialized [-Wmaybe-uninitialized]
1342 | if (InitPage_CheckUseraccess(entry.block.us,table.block.us) || (((entry.block.wr==0) || (table.block.wr==0)))) {
| ~~~~~~~~~~~~^~
paging.cpp: In member function ‘virtual bool InitPageUserROHandler::writeb_checked(PhysPt, uint8_t)’:
paging.cpp:1339:45: note: ‘entry’ declared here
1339 | X86PageEntry table, entry;
| ^~~~~
In member function ‘uint8_t InitPageUserROHandler::InitPageCheckOnly(PhysPt)’,
inlined from ‘virtual bool InitPageUserROHandler::writed_checked(PhysPt, uint32_t)’ at paging.cpp:1285:46:
paging.cpp:1342:66: warning: ‘entry.X86PageEntry::block.X86_PageEntryBlock::us’ may be used uninitialized [-Wmaybe-uninitialized]
1342 | if (InitPage_CheckUseraccess(entry.block.us,table.block.us) || (((entry.block.wr==0) || (table.block.wr==0)))) {
| ~~~~~~~~~~~~^~
paging.cpp: In member function ‘virtual bool InitPageUserROHandler::writed_checked(PhysPt, uint32_t)’:
paging.cpp:1339:45: note: ‘entry’ declared here
1339 | X86PageEntry table, entry;
| ^~~~~
In member function ‘uint8_t InitPageUserROHandler::InitPageCheckOnly(PhysPt)’,
inlined from ‘virtual bool InitPageUserROHandler::writew_checked(PhysPt, uint16_t)’ at paging.cpp:1274:46:
paging.cpp:1342:66: warning: ‘entry.X86PageEntry::block.X86_PageEntryBlock::us’ may be used uninitialized [-Wmaybe-uninitialized]
1342 | if (InitPage_CheckUseraccess(entry.block.us,table.block.us) || (((entry.block.wr==0) || (table.block.wr==0)))) {
| ~~~~~~~~~~~~^~
paging.cpp: In member function ‘virtual bool InitPageUserROHandler::writew_checked(PhysPt, uint16_t)’:
paging.cpp:1339:45: note: ‘entry’ declared here
1339 | X86PageEntry table, entry;
| ^~~~~
In file included from core_dyn_x86/dyn_fpu.h:57,
from core_dyn_x86/decoder.h:2480,
from core_dyn_x86.cpp:296:
core_dyn_x86/../../fpu/fpu_instructions_x86.h:1148:13: warning: ‘void FPU_FSTT_I64(PhysPt)’ defined but not used [-Wunused-function]
1148 | static void FPU_FSTT_I64(PhysPt addr) {
| ^~~~~~~~~~~~
core_dyn_x86/../../fpu/fpu_instructions_x86.h:1143:13: warning: ‘void FPU_FSTT_I32(PhysPt)’ defined but not used [-Wunused-function]
1143 | static void FPU_FSTT_I32(PhysPt addr) {
| ^~~~~~~~~~~~
core_dyn_x86/../../fpu/fpu_instructions_x86.h:1138:13: warning: ‘void FPU_FSTT_I16(PhysPt)’ defined but not used [-Wunused-function]
1138 | static void FPU_FSTT_I16(PhysPt addr) {
| ^~~~~~~~~~~~
In file included from core_dynrec/dyn_fpu.h:57,
from core_dynrec/decoder.h:25,
from core_dynrec.cpp:168:
core_dynrec/../../fpu/fpu_instructions_x86.h:1148:13: warning: ‘void FPU_FSTT_I64(PhysPt)’ defined but not used [-Wunused-function]
1148 | static void FPU_FSTT_I64(PhysPt addr) {
| ^~~~~~~~~~~~
core_dynrec/../../fpu/fpu_instructions_x86.h:1143:13: warning: ‘void FPU_FSTT_I32(PhysPt)’ defined but not used [-Wunused-function]
1143 | static void FPU_FSTT_I32(PhysPt addr) {
| ^~~~~~~~~~~~
core_dynrec/../../fpu/fpu_instructions_x86.h:1138:13: warning: ‘void FPU_FSTT_I16(PhysPt)’ defined but not used [-Wunused-function]
1138 | static void FPU_FSTT_I16(PhysPt addr) {
| ^~~~~~~~~~~~
In file included from dos.cpp:55:
dos.cpp: In function ‘Bitu DOS_21Handler()’:
../ints/int10.h:97:29: warning: unused variable ‘ncols’ [-Wunused-variable]
97 | #define BIOS_NCOLS uint16_t ncols=IS_PC98_ARCH ? 80 : real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS);
| ^~~~~
dos.cpp:1328:25: note: in expansion of macro ‘BIOS_NCOLS’
1328 | BIOS_NCOLS;
| ^~~~~~~~~~
dos.cpp: In function ‘void DOS_EnableDriveMenu(char)’:
dos.cpp:5074:108: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
5074 | if (imageDiskList[i] && imageDiskList[i]->ffdd && imageDiskList[i]->drvnum == drv-'A') {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
dos_programs.cpp: In member function ‘virtual void BOOT::Run()’:
dos_programs.cpp:2157:14: warning: variable ‘swaponedrive’ set but not used [-Wunused-but-set-variable]
2157 | bool swaponedrive = false;
| ^~~~~~~~~~~~
dos_programs.cpp:2337:14: warning: variable ‘bootbyDrive’ set but not used [-Wunused-but-set-variable]
2337 | bool bootbyDrive=false;
| ^~~~~~~~~~~
dos_programs.cpp: In member function ‘bool IMGMOUNT::MountFat(Bitu*, char, bool, const std::string&, const std::vector >&, signed char, bool, int, bool)’:
dos_programs.cpp:7048:40: warning: comparison is always true due to limited range of data type [-Wtype-limits]
7048 | if (driveIndex >= 0 && driveIndex <= 1)
| ~~~~~~~~~~~^~~~
dos_programs.cpp: In member function ‘void IMGMOUNT::DetectGeometry(Bitu*, uint64_t)’:
dos_programs.cpp:7281:34: warning: variable ‘cylinders’ set but not used [-Wunused-but-set-variable]
7281 | uint32_t cylinders;
| ^~~~~~~~~
dos_programs.cpp: In function ‘void MenuBrowseCDImage(char, int)’:
dos_programs.cpp:594:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
594 | getcwd(Temp_CurrentDir, 512);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
dos_programs.cpp:613:46: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
613 | chdir(Temp_CurrentDir);
| ~~~~~^~~~~~~~~~~~~~~~~
dos_programs.cpp:625:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
625 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp:633:14: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
633 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp: In function ‘void MenuBrowseFDImage(char, int, int)’:
dos_programs.cpp:654:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
654 | getcwd(Temp_CurrentDir, 512);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
dos_programs.cpp:669:30: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
669 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp:690:14: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
690 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp: In function ‘void MenuBrowseImageFile(char, bool, bool, bool, const std::string&, const std::string&)’:
dos_programs.cpp:730:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
730 | getcwd(Temp_CurrentDir, 512);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
dos_programs.cpp:877:30: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
877 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp:885:46: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
885 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp:916:14: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
916 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp: In function ‘void MenuBrowseProgramFile()’:
dos_programs.cpp:1038:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1038 | getcwd(Temp_CurrentDir, 512);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
dos_programs.cpp:1115:22: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1115 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp:1147:14: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1147 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
dos_programs.cpp: In member function ‘virtual void IMGMAKE::Run()’:
dos_programs.cpp:4221:33: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4221 | if(setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4259:33: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4259 | if(setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4271:33: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4271 | if(setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4279:33: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4279 | if(setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4302:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4302 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4314:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4314 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4326:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4326 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4338:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4338 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4345:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4345 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4359:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4359 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4385:34: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4385 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4395:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4395 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4605:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4605 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4614:34: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4614 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4632:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4632 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4642:34: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4642 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4672:38: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4672 | if (setdir) chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4896:26: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4896 | chdir(dirCur);
| ~~~~~^~~~~~~~
dos_programs.cpp:4910:18: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4910 | chdir(dirCur);
| ~~~~~^~~~~~~~
drive_local.cpp: In member function ‘virtual bool localDrive::AllocationInfo64(uint32_t*, uint32_t*, uint64_t*, uint64_t*)’:
drive_local.cpp:2406:45: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare]
2406 | if(diff<0 && (-diff)>*_free_clusters)
| ~~~~~~~^~~~~~~~~~~~~~~~
drive_local.cpp: In function ‘void drivezRegister(const std::string&, const std::string&, bool)’:
drive_local.cpp:1316:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1316 | if (f_data) fread(f_data, sizeof(char), f_size, f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drive_fat.cpp: In member function ‘bool fatDrive::FindNextInternal(uint32_t, DOS_DTA&, direntry*)’:
drive_fat.cpp:3041:50: warning: overflow in conversion from ‘int’ to ‘char’ changes value from ‘229’ to ‘-27’ [-Woverflow]
3041 | if (find_name[0] == 0x05) find_name[0] = 0xe5;
| ^~~~
drive_fat.cpp: In member function ‘void fatDrive::checkDiskChange()’:
drive_fat.cpp:3882:14: warning: unused variable ‘chg’ [-Wunused-variable]
3882 | bool chg = false;
| ^~~
In file included from ../libs/physfs/physfs.c:12,
from drive_physfs.cpp:32:
../libs/physfs/physfs.c: In function ‘DirHandle* openDirectory(PHYSFS_Io*, const char*, int)’:
../libs/physfs/physfs.c:934:30: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
934 | BAIL_IF(!retval, claimed ? errcode : PHYSFS_ERR_UNSUPPORTED, NULL);
../libs/physfs/physfs_internal.h:263:44: note: in definition of macro ‘BAIL_IF’
263 | #define BAIL_IF(c, e, r) do { if (c) { if (e != 0) PHYSFS_setErrorCode(e); return r; } } while (0)
| ^
In file included from drive_physfs.cpp:44:
../libs/physfs/physfs_archiver_zip.c: At global scope:
../libs/physfs/physfs_archiver_zip.c:58:16: warning: ‘_ZIPentry’ declared with greater visibility than the type of its field ‘_ZIPentry::tree’ [-Wattributes]
58 | typedef struct _ZIPentry
| ^~~~~~~~~
dos_keyboard_layout.cpp: In member function ‘Bitu keyboard_layout::read_codepage_file(const char*, int32_t)’:
dos_keyboard_layout.cpp:1193:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
1193 | if ((size<<4ul) >= (size_of_cpxdata+0x1000/*4K stack*/)) {
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dos_keyboard_layout.cpp: In constructor ‘DOS_KeyboardLayout::DOS_KeyboardLayout(Section*)’:
dos_keyboard_layout.cpp:1853:22: warning: unused variable ‘cpbak’ [-Wunused-variable]
1853 | uint16_t cpbak = dos.loaded_codepage;
| ^~~~~
In file included from cdrom.cpp:40:
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c: In function ‘int SDL_SYS_CDInit()’:
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:263:17: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
263 | "cdrom", "?a hd?", "?0 scd?", "?0 sr?", NULL
| ^~~~~~~
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:263:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
263 | "cdrom", "?a hd?", "?0 scd?", "?0 sr?", NULL
| ^~~~~~~~
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:263:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
263 | "cdrom", "?a hd?", "?0 scd?", "?0 sr?", NULL
| ^~~~~~~~~
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:263:47: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
263 | "cdrom", "?a hd?", "?0 scd?", "?0 sr?", NULL
| ^~~~~~~~
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:319:24: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
319 | if (CheckDrive("/dev/cdrom", NULL, &stbuf) > 0) {
| ^~~~~~~~~~~~
../../vs/sdl/src/cdrom/linux/SDL_syscdrom.c:320:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
320 | AddDrive("/dev/cdrom", &stbuf);
| ^~~~~~~~~~~~
In file included from cdrom_image.cpp:69:
../../src/libs/libchdr/libchdr_flac.c:15:9: warning: ‘DR_FLAC_NO_STDIO’ redefined
15 | #define DR_FLAC_NO_STDIO
| ^~~~~~~~~~~~~~~~
In file included from cdrom_image.cpp:57:
../../src/libs/decoders/flac.c:38:9: note: this is the location of the previous definition
38 | #define DR_FLAC_NO_STDIO 1
| ^~~~~~~~~~~~~~~~
../../src/libs/libchdr/libchdr_flac.c:191:9: warning: ‘MIN’ redefined
191 | #define MIN(x, y) ((x) < (y) ? (x) : (y))
| ^~~
In file included from cdrom_image.cpp:67:
../../src/libs/libchdr/libchdr_chd.c:68:9: note: this is the location of the previous definition
68 | #define MIN(x, y) (((x) < (y)) ? (x) : (y))
| ^~~
In file included from cdrom_image.cpp:70:
../../src/libs/libchdr/libchdr_huffman.c:105:9: warning: ‘MAX’ redefined
105 | #define MAX(x,y) ((x) > (y) ? (x) : (y))
| ^~~
../../src/libs/libchdr/libchdr_chd.c:67:9: note: this is the location of the previous definition
67 | #define MAX(x, y) (((x) > (y)) ? (x) : (y))
| ^~~
In file included from cdrom_image.cpp:74:
../../src/libs/libchdr/lzma/LzFind.c:1091:9: warning: ‘MOVE_POS’ redefined
1091 | #define MOVE_POS \
| ^~~~~~~~
In file included from cdrom_image.cpp:73:
../../src/libs/libchdr/lzma/LzmaEnc.c:1071:9: note: this is the location of the previous definition
1071 | #define MOVE_POS(p, num) { \
| ^~~~~~~~
In file included from ../../src/libs/libchdr/zstd/common/zstd_internal.h:23,
from ../../src/libs/libchdr/zstd/common/zstd_common.c:18,
from cdrom_image.cpp:78:
../../src/libs/libchdr/zstd/common/cpu.h:152:9: warning: ‘C’ redefined
152 | #define C(name, bit) X(name, f1c, bit)
| ^
In file included from ../../src/libs/decoders/vorbis.c:64,
from cdrom_image.cpp:56:
../../src/libs/decoders/stb_vorbis.h:5206:9: note: this is the location of the previous definition
5206 | #define C (PLAYBACK_LEFT | PLAYBACK_RIGHT | PLAYBACK_MONO)
| ^
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error huff_codec_init(void*, uint32_t)’:
../../src/libs/libchdr/libchdr_chd.c:822:56: warning: unused parameter ‘hunkbytes’ [-Wunused-parameter]
822 | static chd_error huff_codec_init(void* codec, uint32_t hunkbytes)
| ~~~~~~~~~^~~~~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error zstd_codec_init(void*, uint32_t)’:
../../src/libs/libchdr/libchdr_chd.c:1032:56: warning: unused parameter ‘hunkbytes’ [-Wunused-parameter]
1032 | static chd_error zstd_codec_init(void* codec, uint32_t hunkbytes)
| ~~~~~~~~~^~~~~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error decompress_v5_map(chd_file*, chd_header*)’:
../../src/libs/libchdr/libchdr_chd.c:1539:13: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
1539 | int result = 0;
| ^~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error chd_open_core_file(core_file*, int, chd_file*, chd_file**)’:
../../src/libs/libchdr/libchdr_chd.c:1847:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
1847 | for (intfnum = 0; intfnum < ARRAY_LENGTH(codec_interfaces); intfnum++)
../../src/libs/libchdr/libchdr_chd.c:1871:47: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
1871 | for (decompnum = 0; decompnum < ARRAY_LENGTH(newchd->header.compression); decompnum++)
../../src/libs/libchdr/libchdr_chd.c:1874:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
1874 | for (i = 0 ; i < ARRAY_LENGTH(codec_interfaces) ; i++)
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error chd_precache(chd_file*)’:
../../src/libs/libchdr/libchdr_chd.c:1969:27: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare]
1969 | if (count != size)
| ~~~~~~^~~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘void chd_close(chd_file*)’:
../../src/libs/libchdr/libchdr_chd.c:2044:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
2044 | for (i = 0 ; i < ARRAY_LENGTH(chd->codecintf); i++)
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error chd_codec_config(chd_file*, int, void*)’:
../../src/libs/libchdr/libchdr_chd.c:2329:49: warning: unused parameter ‘chd’ [-Wunused-parameter]
2329 | CHD_EXPORT chd_error chd_codec_config(chd_file *chd, int param, void *config)
| ~~~~~~~~~~^~~
../../src/libs/libchdr/libchdr_chd.c:2329:58: warning: unused parameter ‘param’ [-Wunused-parameter]
2329 | CHD_EXPORT chd_error chd_codec_config(chd_file *chd, int param, void *config)
| ~~~~^~~~~
../../src/libs/libchdr/libchdr_chd.c:2329:71: warning: unused parameter ‘config’ [-Wunused-parameter]
2329 | CHD_EXPORT chd_error chd_codec_config(chd_file *chd, int param, void *config)
| ~~~~~~^~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘const char* chd_get_codec_name(uint32_t)’:
../../src/libs/libchdr/libchdr_chd.c:2339:52: warning: unused parameter ‘codec’ [-Wunused-parameter]
2339 | CHD_EXPORT const char *chd_get_codec_name(uint32_t codec)
| ~~~~~~~~~^~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error header_validate(const chd_header*)’:
../../src/libs/libchdr/libchdr_chd.c:2377:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
2377 | for (intfnum = 0; intfnum < ARRAY_LENGTH(codec_interfaces); intfnum++)
../../src/libs/libchdr/libchdr_chd.c: In function ‘uint8_t* hunk_read_compressed(chd_file*, uint64_t, size_t)’:
../../src/libs/libchdr/libchdr_chd.c:2608:27: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
2608 | if (bytes != size)
| ~~~~~~^~~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error hunk_read_uncompressed(chd_file*, uint64_t, size_t, uint8_t*)’:
../../src/libs/libchdr/libchdr_chd.c:2634:27: warning: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
2634 | if (bytes != size)
| ~~~~~~^~~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error hunk_read_into_memory(chd_file*, uint32_t, uint8_t*)’:
../../src/libs/libchdr/libchdr_chd.c:2770:37: warning: unused variable ‘result’ [-Wunused-variable]
2770 | int result = core_fread(chd->file, dest, chd->header.hunkbytes);
| ^~~~~~
../../src/libs/libchdr/libchdr_chd.c: In function ‘chd_error zlib_codec_init(void*, uint32_t)’:
../../src/libs/libchdr/libchdr_chd.c:3041:56: warning: unused parameter ‘hunkbytes’ [-Wunused-parameter]
3041 | static chd_error zlib_codec_init(void *codec, uint32_t hunkbytes)
| ~~~~~~~~~^~~~~~~~~
cdrom_image.cpp: In member function ‘bool CDROM_Interface_Image::AddTrack(Track&, int&, int, int&, int)’:
cdrom_image.cpp:1699:25: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
1699 | if (curr.length < 0) return false;
| ~~~~~~~~~~~~^~~
../../src/libs/libchdr/lzma/LzFind.c: At global scope:
../../src/libs/libchdr/lzma/LzFind.c:738:1: warning: ‘void LzFind_SaturSub_256(UInt32, CLzRef*, const CLzRef*)’ defined but not used [-Wunused-function]
738 | LzFind_SaturSub_256(UInt32 subValue, CLzRef *items, const CLzRef *lim)
| ^~~~~~~~~~~~~~~~~~~
../../src/libs/libchdr/lzma/LzFind.c:690:1: warning: ‘void LzFind_SaturSub_128(UInt32, CLzRef*, const CLzRef*)’ defined but not used [-Wunused-function]
690 | LzFind_SaturSub_128(UInt32 subValue, CLzRef *items, const CLzRef *lim)
| ^~~~~~~~~~~~~~~~~~~
../../src/libs/libchdr/libchdr_flac.c:32:16: warning: ‘uint8_t bits_per_sample(flac_decoder*)’ defined but not used [-Wunused-function]
32 | static uint8_t bits_per_sample(flac_decoder *decoder) { return decoder->bits_per_sample; }
| ^~~~~~~~~~~~~~~
../../src/libs/libchdr/libchdr_flac.c:30:17: warning: ‘uint32_t sample_rate(flac_decoder*)’ defined but not used [-Wunused-function]
30 | static uint32_t sample_rate(flac_decoder *decoder) { return decoder->sample_rate; }
| ^~~~~~~~~~~
../../src/libs/libchdr/libchdr_chd.c:2646:18: warning: ‘chd_error hunk_read_into_cache(chd_file*, uint32_t)’ defined but not used [-Wunused-function]
2646 | static chd_error hunk_read_into_cache(chd_file *chd, uint32_t hunknum)
| ^~~~~~~~~~~~~~~~~~~~
render.cpp:367:13: warning: ‘void RENDER_FinishLineHandler(const void*)’ defined but not used [-Wunused-function]
367 | static void RENDER_FinishLineHandler(const void * s) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
sdlmain.cpp: In function ‘SDL_Window* GFX_SetSDLWindowMode(uint16_t, uint16_t, SCREEN_TYPES)’:
sdlmain.cpp:1848:28: warning: unused variable ‘fs_flags’ [-Wunused-variable]
1848 | const uint32_t fs_flags =
| ^~~~~~~~
sdlmain.cpp: In function ‘void GFX_EndUpdate(const uint16_t*)’:
sdlmain.cpp:3343:1: warning: label ‘switch_type’ defined but not used [-Wunused-label]
3343 | switch_type:
| ^~~~~~~~~~~
sdlmain.cpp: In function ‘void GFX_HandleVideoResize(int, int)’:
sdlmain.cpp:4572:55: warning: comparison of integer expressions of different signedness: ‘Bitu’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
4572 | userResizeWindowWidth = currentWindowWidth==sdl.surface->w?0:(unsigned int)currentWindowWidth;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
sdlmain.cpp:4573:57: warning: comparison of integer expressions of different signedness: ‘Bitu’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
4573 | userResizeWindowHeight = currentWindowHeight==sdl.surface->h?0:(unsigned int)currentWindowHeight;
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
sdlmain.cpp: In function ‘int main(int, char**)’:
sdlmain.cpp:9360:24: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
9360 | putenv("SDL_VIDEODRIVER=x11"); // default to x11 (xwayland) on Linux
| ^~~~~~~~~~~~~~~~~~~~~
sdlmain.cpp: In function ‘bool DOSBOX_parse_argv()’:
sdlmain.cpp:7606:26: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7606 | chdir(tmp.c_str());
| ~~~~~^~~~~~~~~~~~~
In file included from midi.cpp:107:
midi_timidity.h:56:22: warning: ‘virtual const char* MidiHandler_timidity::GetName()’ can be marked override [-Wsuggest-override]
56 | const char * GetName(void) { return "timidity";};
| ^~~~~~~
midi_timidity.h:57:17: warning: ‘virtual bool MidiHandler_timidity::Open(const char*)’ can be marked override [-Wsuggest-override]
57 | bool Open(const char * conf);
| ^~~~
midi_timidity.h:58:17: warning: ‘virtual void MidiHandler_timidity::Close()’ can be marked override [-Wsuggest-override]
58 | void Close(void);
| ^~~~~
midi_timidity.h:59:17: warning: ‘virtual void MidiHandler_timidity::PlayMsg(uint8_t*)’ can be marked override [-Wsuggest-override]
59 | void PlayMsg(uint8_t * msg);
| ^~~~~~~
midi_timidity.h:60:17: warning: ‘virtual void MidiHandler_timidity::PlaySysex(uint8_t*, Bitu)’ can be marked override [-Wsuggest-override]
60 | void PlaySysex(uint8_t *msg, Bitu length);
| ^~~~~~~~~
sdl_gui.cpp: In function ‘void RebootConfig(std::string, bool)’:
sdl_gui.cpp:227:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
227 | system((exepath+" "+para+ " &").c_str());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sdl_gui.cpp: In function ‘void RebootLanguage(std::string, bool)’:
sdl_gui.cpp:249:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
249 | system((exepath+" "+para+ " &").c_str());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sdl_gui.cpp: In member function ‘virtual void ConfigurationWindow::actionExecuted(GUI::ActionEventSource*, const GUI::String&)’:
sdl_gui.cpp:3637:19: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
3637 | system(("xdg-open "+url).c_str());
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
sdl_gui.cpp: In member function ‘virtual void MakeDiskImage::actionExecuted(GUI::ActionEventSource*, const GUI::String&)’:
sdl_gui.cpp:3107:23: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
3107 | getcwd(Temp_CurrentDir, 512);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
sdl_gui.cpp:3122:22: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
3122 | chdir( Temp_CurrentDir );
| ~~~~~^~~~~~~~~~~~~~~~~~~
menu.cpp: In function ‘void ConstructMenu()’:
menu.cpp:1936:24: warning: unused variable ‘tmp’ [-Wunused-variable]
1936 | char name[128],tmp[64];
| ^~~
menu.cpp: At global scope:
menu.cpp:359:20: warning: ‘def_menu_video_preventcapture’ defined but not used [-Wunused-variable]
359 | static const char *def_menu_video_preventcapture[] =
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
menu_callback.cpp: In function ‘bool drive_saveimg_menu_callback(DOSBoxMenu*, DOSBoxMenu::item*)’:
menu_callback.cpp:523:84: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
523 | if (imageDiskList[i] && imageDiskList[i]->ffdd && imageDiskList[i]->drvnum == drive) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
menu_callback.cpp: In function ‘bool preventcapture_menu_callback(DOSBoxMenu*, DOSBoxMenu::item*)’:
menu_callback.cpp:2061:54: warning: unused parameter ‘menu’ [-Wunused-parameter]
2061 | bool preventcapture_menu_callback(DOSBoxMenu * const menu,DOSBoxMenu::item * const menuitem) {
| ~~~~~~~~~~~~~~~~~~~^~~~
menu_callback.cpp:2061:84: warning: unused parameter ‘menuitem’ [-Wunused-parameter]
2061 | bool preventcapture_menu_callback(DOSBoxMenu * const menu,DOSBoxMenu::item * const menuitem) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
menu_callback.cpp: In function ‘bool drive_saveimg_menu_callback(DOSBoxMenu*, DOSBoxMenu::item*)’:
menu_callback.cpp:525:18: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
525 | chdir(Temp_CurrentDir);
| ~~~~~^~~~~~~~~~~~~~~~~
printer.cpp: In member function ‘void CPrinter::outputPage()’:
printer.cpp:2264:31: warning: comparison of integer expressions of different signedness: ‘Bitu’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
2264 | for (i = 0; i < height; i++)
| ~~^~~~~~~~
In file included from saa1099.cpp:71:
saa1099.h: In constructor ‘saa1099_device::saa1099_device(const machine_config&, const char*, device_t*, uint32_t)’:
saa1099.h:119:16: warning: ‘saa1099_device::m_sample_rate’ will be initialized after [-Wreorder]
119 | double m_sample_rate;
| ^~~~~~~~~~~~~
saa1099.h:56:18: warning: ‘uint32_t saa1099_device::sample_rate’ [-Wreorder]
56 | uint32_t sample_rate;
| ^~~~~~~~~~~
saa1099.cpp:141:1: warning: when initialized here [-Wreorder]
141 | saa1099_device::saa1099_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
| ^~~~~~~~~~~~~~
adlib.cpp: In member function ‘void Adlib::Capture::CloseFile()’:
adlib.cpp:941:36: warning: taking address of packed member of ‘Adlib::RawHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
941 | var_write( &header.versionHigh, header.versionHigh );
| ^~~~~~~~~~~~~~~~~~~
adlib.cpp:942:36: warning: taking address of packed member of ‘Adlib::RawHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
942 | var_write( &header.versionLow, header.versionLow );
| ^~~~~~~~~~~~~~~~~~
adlib.cpp:943:36: warning: taking address of packed member of ‘Adlib::RawHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
943 | var_write( &header.commands, header.commands );
| ^~~~~~~~~~~~~~~~
adlib.cpp:944:36: warning: taking address of packed member of ‘Adlib::RawHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
944 | var_write( &header.milliseconds, header.milliseconds );
| ^~~~~~~~~~~~~~~~~~~~
In file included from adlib.cpp:143:
opl.cpp: In function ‘void OPL2::adlib_getsample(int16_t*, Bits)’:
opl.cpp:1106:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL2::tremval4’ [-Wdangling-pointer=]
1106 | if (cptr[9].tremolo) tremval4 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:50: note: ‘OPL2::tremval4’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1096:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL2::tremval2’ [-Wdangling-pointer=]
1096 | if (cptr[9].tremolo) tremval2 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:28: note: ‘OPL2::tremval2’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1094:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL2::tremval1’ [-Wdangling-pointer=]
1094 | if (cptr[0].tremolo) tremval1 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:17: note: ‘OPL2::tremval1’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1066:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL2::tremval3’ [-Wdangling-pointer=]
1066 | if (cptr[0].tremolo) tremval3 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:39: note: ‘OPL2::tremval3’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
In file included from adlib.cpp:211:
opl.cpp: In function ‘void OPL3::adlib_getsample(int16_t*, Bits)’:
opl.cpp:1106:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL3::tremval4’ [-Wdangling-pointer=]
1106 | if (cptr[9].tremolo) tremval4 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:50: note: ‘OPL3::tremval4’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1096:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL3::tremval2’ [-Wdangling-pointer=]
1096 | if (cptr[9].tremolo) tremval2 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:28: note: ‘OPL3::tremval2’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1094:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL3::tremval1’ [-Wdangling-pointer=]
1094 | if (cptr[0].tremolo) tremval1 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:17: note: ‘OPL3::tremval1’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
opl.cpp:1066:63: warning: storing the address of local variable ‘trem_lut’ in ‘OPL3::tremval3’ [-Wdangling-pointer=]
1066 | if (cptr[0].tremolo) tremval3 = trem_lut; // tremolo enabled, use table
| ~~~~~~~~~^~~~~~~~~~
opl.cpp:970:17: note: ‘trem_lut’ declared here
970 | int32_t trem_lut[BLOCKBUF_SIZE];
| ^~~~~~~~
opl.cpp:55:39: note: ‘OPL3::tremval3’ declared here
55 | static int32_t *tremval1, *tremval2, *tremval3, *tremval4;
| ^~~~~~~~
pcspeaker.cpp: In function ‘void PCSPEAKER_CallBack(Bitu)’:
pcspeaker.cpp:700:64: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘pic_tickindex_t’ {aka ‘long double’} [-Wformat=]
700 | LOG(LOG_MISC,LOG_DEBUG)("Next entry waits for index %.3f, stopped at %.3f",spkr.entries[0].index,sample_base);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| double pic_tickindex_t {aka long double}
| %.3Lf
pcspeaker.cpp:700:81: warning: format ‘%f’ expects argument of type ‘double’, but argument 4 has type ‘pic_tickindex_t’ {aka ‘long double’} [-Wformat=]
700 | LOG(LOG_MISC,LOG_DEBUG)("Next entry waits for index %.3f, stopped at %.3f",spkr.entries[0].index,sample_base);
| ~~~^ ~~~~~~~~~~~
| | |
| double pic_tickindex_t {aka long double}
| %.3Lf
sblaster.cpp: In function ‘void POD_Save_Sblaster(std::ostream&)’:
sblaster.cpp:4654:14: warning: the address of ‘test’ will never be NULL [-Waddress]
4654 | if( !test ) return;
| ^~~~
sblaster.cpp:4559:18: note: ‘test’ declared here
4559 | static SBLASTER* test[MAX_CARDS] = {NULL};
| ^~~~
sblaster.cpp: In function ‘void POD_Load_Sblaster(std::istream&)’:
sblaster.cpp:4697:14: warning: the address of ‘test’ will never be NULL [-Waddress]
4697 | if( !test ) return;
| ^~~~
sblaster.cpp:4559:18: note: ‘test’ declared here
4559 | static SBLASTER* test[MAX_CARDS] = {NULL};
| ^~~~
In file included from voodoo_emu.h:28,
from voodoo_emu.cpp:82:
voodoo_emu.cpp: In function ‘void lfb_w(UINT32, UINT32, UINT32)’:
voodoo_data.h:1093:22: warning: variable ‘dither4’ set but not used [-Wunused-but-set-variable]
1093 | const UINT8 *dither4 = NULL
| ^~~~~~~
voodoo_emu.cpp:2183:17: note: in expansion of macro ‘DECLARE_DITHER_POINTERS_’
2183 | DECLARE_DITHER_POINTERS_;
| ^~~~~~~~~~~~~~~~~~~~~~~~
voodoo_emu.cpp: In function ‘void fastfill(voodoo_state*)’:
voodoo_data.h:1093:22: warning: variable ‘dither4’ set but not used [-Wunused-but-set-variable]
1093 | const UINT8 *dither4 = NULL
| ^~~~~~~
voodoo_emu.cpp:3146:25: note: in expansion of macro ‘DECLARE_DITHER_POINTERS_’
3146 | DECLARE_DITHER_POINTERS_;
| ^~~~~~~~~~~~~~~~~~~~~~~~
ide.cpp: In member function ‘virtual void IDEATADevice::generate_identify_device()’:
ide.cpp:2632:14: warning: variable ‘ptotal’ set but not used [-Wunused-but-set-variable]
2632 | uint64_t ptotal;
| ^~~~~~
ide.cpp: In function ‘void DOS_EnableDriveIDEMenu(unsigned int, unsigned char)’:
ide.cpp:5351:22: warning: variable ‘empty’ set but not used [-Wunused-but-set-variable]
5351 | bool empty = true;
| ^~~~~
fluid_dll.c:136: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_cmd.c:2027: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_filerenderer.c:546: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_adriver.c:405: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_aufile.c:141: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_mdriver.c:248: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_midi.c:1945: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_sdl2.c:257: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_dsound.c:502: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_midi_router.c:1024: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_seq.c:1221: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_seqbind.c:344: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_adsr_env.c:42: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_chorus.c:536: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_iir_filter.c:305: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_lfo.c:18: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_rvoice.c:667: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_rev.c:549: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_rvoice_dsp.c:680: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_rvoice_event.c:298: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_rvoice_mixer.c:993: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_ramsfont.c:1235: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_defsfont.c:3435: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_chan.c:296: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_event.c:833: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_mod.c:491: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_gen.c:153: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_synth.c:5107: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_tuning.c:178: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_voice.c:1631: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_hash.c:1313: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_conv.c:324: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_list.c:269: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_ringbuffer.c:94: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_settings.c:1605: warning: ISO C forbids an empty translation unit [-Wpedantic]
fluid_sys.c:1435: warning: ISO C forbids an empty translation unit [-Wpedantic]
opus/celt/celt_decoder.c: In function ‘opus_custom_decoder_init’:
opus/celt/celt_decoder.c:194:7: warning: ‘nonnull’ argument ‘st’ compared to NULL [-Wnonnull-compare]
194 | if (st==NULL)
| ^
In function ‘op_bisect_forward_serialno’,
inlined from ‘op_open_seekable2_impl’ at opusfile/opusfile.c:1413:10,
inlined from ‘op_open_seekable2.constprop’ at opusfile/opusfile.c:1447:7:
opusfile/opusfile.c:1253:11: warning: ‘end_offset’ may be used uninitialized [-Wmaybe-uninitialized]
1253 | ret=op_find_final_pcm_offset(_of,serialnos,nserialnos,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1254 | links+nlinks-1,end_offset,links[nlinks-1].serialno,end_gp,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1255 | &total_duration);
| ~~~~~~~~~~~~~~~~
opusfile/opusfile.c: In function ‘op_open_seekable2.constprop’:
opusfile/opusfile.c:1134:17: note: ‘end_offset’ was declared here
1134 | ogg_int64_t end_offset;
| ^~~~~~~~~~
opusfile/opusfile.c: In function ‘op_pcm_total’:
opusfile/opusfile.c:1754:19: warning: ‘diff’ may be used uninitialized [-Wmaybe-uninitialized]
1754 | return pcm_total+diff-links[_li].head.pre_skip;
| ~~~~~~~~~^~~~~
opusfile/opusfile.c:1735:16: note: ‘diff’ was declared here
1735 | ogg_int64_t diff;
| ^~~~
In file included from opus/silk/float/structs_FLP.h:32,
from opus/silk/float/main_FLP.h:33,
from opus/silk/float/wrappers_FLP.c:32:
opus/silk/float/wrappers_FLP.c: In function ‘silk_NSQ_wrapper_FLP’:
opus/silk/float/../main.h:296:18: warning: ‘silk_NSQ_del_dec_c’ reading 64 bytes from a region of size 32 [-Wstringop-overread]
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 6 of type ‘const opus_int16[32]’ {aka ‘const short int[32]’}
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 7 of type ‘const opus_int16[20]’ {aka ‘const short int[20]’}
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 8 of type ‘const opus_int16[96]’ {aka ‘const short int[96]’}
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 9 of type ‘const int[4]’
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 10 of type ‘const int[4]’
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 11 of type ‘const opus_int32[4]’ {aka ‘const int[4]’}
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 12 of type ‘const opus_int32[4]’ {aka ‘const int[4]’}
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:296:18: note: referencing argument 13 of type ‘const int[4]’
296 | ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
297 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:164:9: note: in expansion of macro ‘silk_NSQ_del_dec’
164 | silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~~~~~~~~~
opus/silk/float/../main.h:275:6: note: in a call to function ‘silk_NSQ_del_dec_c’
275 | void silk_NSQ_del_dec_c(
| ^~~~~~~~~~~~~~~~~~
opus/silk/float/../main.h:270:18: warning: ‘silk_NSQ_c’ reading 64 bytes from a region of size 32 [-Wstringop-overread]
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 6 of type ‘const opus_int16[32]’ {aka ‘const short int[32]’}
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 7 of type ‘const opus_int16[20]’ {aka ‘const short int[20]’}
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 8 of type ‘const opus_int16[96]’ {aka ‘const short int[96]’}
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 9 of type ‘const int[4]’
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 10 of type ‘const int[4]’
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 11 of type ‘const opus_int32[4]’ {aka ‘const int[4]’}
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 12 of type ‘const opus_int32[4]’ {aka ‘const int[4]’}
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:270:18: note: referencing argument 13 of type ‘const int[4]’
270 | ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271 | HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:167:9: note: in expansion of macro ‘silk_NSQ’
167 | silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
| ^~~~~~~~
opus/silk/float/../main.h:249:6: note: in a call to function ‘silk_NSQ_c’
249 | void silk_NSQ_c(
| ^~~~~~~~~~
opus/silk/float/wrappers_FLP.c: In function ‘silk_quant_LTP_gains_FLP’:
opus/silk/float/wrappers_FLP.c:200:5: warning: ‘XX_Q17’ may be used uninitialized [-Wmaybe-uninitialized]
200 | silk_quant_LTP_gains( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, &pred_gain_dB_Q7, XX_Q17, xX_Q17, subfr_len, nb_subfr, arch );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/../main.h:211:6: note: by argument 6 of type ‘const opus_int32[100]’ {aka ‘const int[100]’} to ‘silk_quant_LTP_gains’ declared here
211 | void silk_quant_LTP_gains(
| ^~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:190:16: note: ‘XX_Q17’ declared here
190 | opus_int32 XX_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ];
| ^~~~~~
opus/silk/float/wrappers_FLP.c:200:5: warning: ‘xX_Q17’ may be used uninitialized [-Wmaybe-uninitialized]
200 | silk_quant_LTP_gains( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, &pred_gain_dB_Q7, XX_Q17, xX_Q17, subfr_len, nb_subfr, arch );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
opus/silk/float/../main.h:211:6: note: by argument 7 of type ‘const opus_int32[20]’ {aka ‘const int[20]’} to ‘silk_quant_LTP_gains’ declared here
211 | void silk_quant_LTP_gains(
| ^~~~~~~~~~~~~~~~~~~~
opus/silk/float/wrappers_FLP.c:191:16: note: ‘xX_Q17’ declared here
191 | opus_int32 xX_Q17[ MAX_NB_SUBFR * LTP_ORDER ];
| ^~~~~~
In function ‘silk_NLSF2A_find_poly’,
inlined from ‘silk_NLSF2A’ at opus/silk/NLSF2A.c:116:5:
opus/silk/NLSF2A.c:54:19: warning: ‘cos_LSF_QA’ may be used uninitialized [-Wmaybe-uninitialized]
54 | out[1] = -cLSF[0];
| ~~~~^~~
opus/silk/NLSF2A.c: In function ‘silk_NLSF2A’:
opus/silk/NLSF2A.c:83:16: note: ‘cos_LSF_QA’ declared here
83 | opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ];
| ^~~~~~~~~~
In function ‘silk_NLSF2A_find_poly’,
inlined from ‘silk_NLSF2A’ at opus/silk/NLSF2A.c:117:5:
opus/silk/NLSF2A.c:54:19: warning: ‘cos_LSF_QA’ may be used uninitialized [-Wmaybe-uninitialized]
54 | out[1] = -cLSF[0];
| ~~~~^~~
opus/silk/NLSF2A.c: In function ‘silk_NLSF2A’:
opus/silk/NLSF2A.c:83:16: note: ‘cos_LSF_QA’ declared here
83 | opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ];
| ^~~~~~~~~~
opus/src/opus_projection_encoder.c: In function ‘opus_projection_ambisonics_encoder_init’:
opus/src/opus_projection_encoder.c:215:15: warning: ‘nonnull’ argument ‘streams’ compared to NULL [-Wnonnull-compare]
215 | if (streams == NULL || coupled_streams == NULL) {
| ^
opus/src/opus_projection_encoder.c:215:42: warning: ‘nonnull’ argument ‘coupled_streams’ compared to NULL [-Wnonnull-compare]
215 | if (streams == NULL || coupled_streams == NULL) {
| ^
speexdsp/fftwrap.c: In function ‘spx_fft_float’:
speexdsp/fftwrap.c:388:19: warning: passing argument 2 of ‘spx_fft’ from incompatible pointer type [-Wincompatible-pointer-types]
388 | spx_fft(table, _in, _out);
| ^~~
| |
| spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:102:34: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
102 | void spx_fft(void *table, float *in, float *out)
| ~~~~~~~^~
speexdsp/fftwrap.c:388:24: warning: passing argument 3 of ‘spx_fft’ from incompatible pointer type [-Wincompatible-pointer-types]
388 | spx_fft(table, _in, _out);
| ^~~~
| |
| spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:102:45: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
102 | void spx_fft(void *table, float *in, float *out)
| ~~~~~~~^~~
speexdsp/fftwrap.c: In function ‘spx_ifft_float’:
speexdsp/fftwrap.c:424:20: warning: passing argument 2 of ‘spx_ifft’ from incompatible pointer type [-Wincompatible-pointer-types]
424 | spx_ifft(table, _in, _out);
| ^~~
| |
| spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:120:35: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
120 | void spx_ifft(void *table, float *in, float *out)
| ~~~~~~~^~
speexdsp/fftwrap.c:424:25: warning: passing argument 3 of ‘spx_ifft’ from incompatible pointer type [-Wincompatible-pointer-types]
424 | spx_ifft(table, _in, _out);
| ^~~~
| |
| spx_word16_t * {aka short int *}
speexdsp/fftwrap.c:120:46: note: expected ‘float *’ but argument is of type ‘spx_word16_t *’ {aka ‘short int *’}
120 | void spx_ifft(void *table, float *in, float *out)
| ~~~~~~~^~~
speexdsp/jitter.c: In function ‘jitter_buffer_ctl’:
speexdsp/jitter.c:807:28: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
807 | jitter->destroy = (void (*) (void *))ptr;
| ^
int10.cpp: In function ‘Bitu INT10_Handler()’:
int10.cpp:492:57: warning: comparison is always true due to limited range of data type [-Wtype-limits]
492 | if ((video_mode >= 0 && video_mode <= 7) || (video_mode >= 13 && video_mode <= 19)) {//standard VGA for now!
| ~~~~~~~~~~~^~~~
int_dosv.cpp: In function ‘bool readPCF(FILE*, int)’:
int_dosv.cpp:470:85: warning: comparison is always true due to limited range of data type [-Wtype-limits]
470 | if ((m.height() == height || m.height() == 15) && charcode >= 0x100 && charcode <= 0xffff) {
| ~~~~~~~~~^~~~~~~~~
int_dosv.cpp:478:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
478 | if (j != 30 && j != height * 2) continue;
| ~~^~~~~~~~~~~~~
int_dosv.cpp: In function ‘Bitu mskanji_api()’:
int_dosv.cpp:1840:24: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable]
1840 | uint16_t func, mode;
| ^~~~
int_dosv.cpp: In function ‘void DOSV_CursorXor24(Bitu, Bitu, Bitu, Bitu)’:
int_dosv.cpp:1935:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
1935 | volatile uint8_t dummy;
| ^~~~~
int_dosv.cpp: In function ‘void DOSV_CursorXor(Bitu, Bitu)’:
int_dosv.cpp:2013:34: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
2013 | volatile uint8_t dummy;
| ^~~~~
int_dosv.cpp: In function ‘Bitu getfontx2header(FILE*, fontx_h*)’:
int_dosv.cpp:628:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
628 | fread(header->id, ID_LEN, 1, fp);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:631:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
631 | fread(header->name, NAME_LEN, 1, fp);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp: In function ‘bool LoadFontxFile(const char*, int, bool)’:
int_dosv.cpp:692:57: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
692 | for(int i = 0 ; i < 256 ; i++) fread(&jfont_sbcs_16[i * 16], sizeof(uint8_t), 15, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:694:57: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
694 | for(int i = 0 ; i < 256 ; i++) fread(&jfont_sbcs_19[i * 19 + 2], sizeof(uint8_t), 15, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:701:57: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
701 | for(int i = 0 ; i < 256 ; i++) fread(&jfont_sbcs_16[i * 16], sizeof(uint8_t), 16, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:703:57: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
703 | for(int i = 0 ; i < 256 ; i++) fread(&jfont_sbcs_19[i * 19 + 1], sizeof(uint8_t), 16, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:709:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
709 | fread(jfont_sbcs_24, sizeof(uint8_t), SBCS24_LEN, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:724:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
724 | fread(fontdata14, sizeof(uint8_t), sz, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:732:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
732 | fread(fontdata16, sizeof(uint8_t), sz, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:740:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
740 | fread(fontdata24, sizeof(uint8_t), sz, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:758:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
758 | fread(&jfont_dbcs_14[code * 28], sizeof(uint8_t), 28, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:768:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
768 | fread(&jfont_dbcs_16[code * 32], sizeof(uint8_t), 32, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:778:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
778 | fread(&jfont_dbcs_24[code * 72], sizeof(uint8_t), 72, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:790:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
790 | fread(jfont_sbcs_19, sizeof(uint8_t), SBCS19_LEN, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:794:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
794 | fread(&jfont_sbcs_16[i * 16], sizeof(uint8_t), 16, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:798:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
798 | fread(&jfont_sbcs_19[i * 19 + 1], sizeof(uint8_t), 16, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int_dosv.cpp:806:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
806 | fread(jfont_sbcs_24, sizeof(uint8_t), SBCS24_LEN, mfile);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int10_char.cpp: In function ‘void WriteCharDOSVSbcs24(uint8_t, uint8_t, uint8_t, uint8_t)’:
int10_char.cpp:730:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
730 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void WriteCharDOSVDbcs24(uint16_t, uint16_t, uint16_t, uint8_t)’:
int10_char.cpp:782:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
782 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void WriteCharDOSVSbcs(uint16_t, uint16_t, uint8_t, uint8_t)’:
int10_char.cpp:848:42: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
848 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp:866:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
866 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void DrawCharDOSVDbcsHalf(Bitu, uint8_t*, uint8_t, Bitu, uint8_t, uint8_t, bool)’:
int10_char.cpp:887:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
887 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void DrawCharDOSVDbcs(Bitu, uint16_t*, uint8_t, Bitu, uint8_t, uint8_t)’:
int10_char.cpp:920:27: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
920 | volatile uint16_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void DrawExtendAttribute(uint16_t, uint16_t, uint8_t, uint8_t)’:
int10_char.cpp:1894:26: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
1894 | volatile uint8_t dummy;
| ^~~~~
int10_char.cpp: In function ‘void INT10_WriteString(uint8_t, uint8_t, uint8_t, uint8_t, PhysPt, uint16_t, uint8_t)’:
int10_char.cpp:1964:13: warning: ‘ex_attr’ may be used uninitialized [-Wmaybe-uninitialized]
1964 | uint8_t ex_attr;
| ^~~~~~~
int10_vesa.cpp: In function ‘uint8_t VESA_GetSVGAModeInformation(uint16_t, uint16_t, uint16_t)’:
int10_vesa.cpp:305:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
305 | var_write(&minfo.BytesPerScanLine,(uint16_t)((((cwidth+15U)/8U)&(~1U))*4)); /* NTS: 4bpp requires even value due to VGA registers, round up */
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:321:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
321 | var_write(&minfo.BytesPerScanLine,(uint16_t)(((cwidth+15U)/8U)&(~1U))); /* NTS: 4bpp requires even value due to VGA registers, round up */
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:336:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
336 | var_write(&minfo.BytesPerScanLine,(uint16_t)(((cwidth+15U)/8U)&(~1U))); /* NTS: 4bpp requires even value due to VGA registers, round up */
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:348:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
348 | var_write(&minfo.BytesPerScanLine,(uint16_t)cwidth);
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:362:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
362 | var_write(&minfo.BytesPerScanLine,(uint16_t)(cwidth*2));
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:384:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
384 | var_write(&minfo.BytesPerScanLine,(uint16_t)(cwidth*2));
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:405:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
405 | var_write(&minfo.BytesPerScanLine,(uint16_t)(cwidth*3));
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:425:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
425 | var_write(&minfo.BytesPerScanLine,(uint16_t)(cwidth*4));
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:448:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
448 | var_write(&minfo.BytesPerScanLine, (uint16_t)(mblock->twidth * 2));
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:487:19: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
487 | var_write(&minfo.ModeAttributes, modeAttributes);
| ^~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:497:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
497 | var_write(&minfo.WinGranularity,0);
| ^~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:498:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
498 | var_write(&minfo.WinSize,0);
| ^~~~~~~~~~~~~~
int10_vesa.cpp:499:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
499 | var_write(&minfo.WinASegment,(uint16_t)0);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:502:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
502 | var_write(&minfo.WinGranularity,32);
| ^~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:503:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
503 | var_write(&minfo.WinSize,32);
| ^~~~~~~~~~~~~~
int10_vesa.cpp:504:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
504 | var_write(&minfo.WinASegment,(uint16_t)0xb800);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:508:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
508 | var_write(&minfo.XResolution,(uint16_t)mblock->twidth);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:509:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
509 | var_write(&minfo.YResolution,(uint16_t)mblock->theight);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:513:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
513 | var_write(&minfo.WinGranularity,0);
| ^~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:514:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
514 | var_write(&minfo.WinSize,0);
| ^~~~~~~~~~~~~~
int10_vesa.cpp:515:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
515 | var_write(&minfo.WinASegment,(uint16_t)0);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:518:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
518 | var_write(&minfo.WinGranularity,vbe_window_granularity>>10u); /* field is in KB */
| ^~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:519:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
519 | var_write(&minfo.WinSize,vbe_window_size>>10u); /* field is in KB */
| ^~~~~~~~~~~~~~
int10_vesa.cpp:520:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
520 | var_write(&minfo.WinASegment,(uint16_t)0xa000);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:524:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
524 | var_write(&minfo.XResolution,(uint16_t)mblock->swidth);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:525:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
525 | var_write(&minfo.YResolution,(uint16_t)mblock->sheight);
| ^~~~~~~~~~~~~~~~~~
int10_vesa.cpp:528:19: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
528 | var_write(&minfo.WinFuncPtr,int10.rom.set_window);
| ^~~~~~~~~~~~~~~~~
int10_vesa.cpp:542:35: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
542 | var_write(&minfo.BytesPerScanLine,(uint16_t)w);
| ^~~~~~~~~~~~~~~~~~~~~~~
int10_vesa.cpp:547:27: warning: taking address of packed member of ‘MODE_INFO’ may result in an unaligned pointer value [-Waddress-of-packed-member]
547 | var_write(&minfo.PhysBasePtr,S3_LFB_BASE + adj + (hack_lfb_yadjust*(long)host_readw((HostPt)(&minfo.BytesPerScanLine))));
| ^~~~~~~~~~~~~~~~~~
bios.cpp: In function ‘void dosbox_integration_trigger_write()’:
bios.cpp:1390:37: warning: the address of ‘setting’ will never be NULL [-Waddress]
1390 | if (setting) {
| ^~~~~~~
bios.cpp:1361:38: note: ‘setting’ declared here
1361 | char setting[256] = {0};
| ^~~~~~~
bios.cpp: In function ‘void PC98_BIOS_FDC_CALL(unsigned int)’:
bios.cpp:5086:38: warning: unused parameter ‘flags’ [-Wunused-parameter]
5086 | void PC98_BIOS_FDC_CALL(unsigned int flags) {
| ~~~~~~~~~~~~~^~~~~
bios.cpp: In function ‘void ROMBIOS_Init()’:
bios.cpp:13006:42: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13006 | fread(GetMemBase()+ibm_rom_basic_base,ibm_rom_basic_size,1u,fp);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp: In static member function ‘static void fatFromDOSDrive::fatFromDOSDrive(DOS_Drive*, uint32_t, int)::Iter::ParseDir(fatFromDOSDrive&, char*, const StringToPointerHashMap*, int, uint16_t)’:
bios_disk.cpp:589:35: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
589 | var_write(&e->crtTime, dta_time); // create date/time is DOS 7.0 and up only
| ^~~~~~~~~~~
bios_disk.cpp:590:35: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
590 | var_write(&e->crtDate, dta_date); // create date/time is DOS 7.0 and up only
| ^~~~~~~~~~~
bios_disk.cpp:592:51: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
592 | var_write(&e->accessDate, dta_date);
| ^~~~~~~~~~~~~~
bios_disk.cpp:593:51: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
593 | var_write(&e->modTime, dta_time);
| ^~~~~~~~~~~
bios_disk.cpp:594:51: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
594 | var_write(&e->modDate, dta_date);
| ^~~~~~~~~~~
bios_disk.cpp:599:59: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
599 | var_write(&e->loFirstClust, myFirstCluster);
| ^~~~~~~~~~~~~~~~
bios_disk.cpp:604:59: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
604 | var_write(&e->loFirstClust, parentFirstCluster);
| ^~~~~~~~~~~~~~~~
bios_disk.cpp:613:59: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
613 | var_write(&e->entrysize, dta_size);
| ^~~~~~~~~~~~~
bios_disk.cpp:659:59: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
659 | var_write(&e.loFirstClust, (uint16_t)(2 + ffdd.dirs.size() / entriesPerCluster));
| ^~~~~~~~~~~~~~~
bios_disk.cpp: In constructor ‘fatFromDOSDrive::fatFromDOSDrive(DOS_Drive*, uint32_t, int)’:
bios_disk.cpp:761:43: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
761 | var_write(&e.hiFirstClust, (uint16_t)(fileCluster >> 16));
| ^~~~~~~~~~~~~~~
bios_disk.cpp:762:43: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
762 | var_write(&e.loFirstClust, (uint16_t)(fileCluster));
| ^~~~~~~~~~~~~~~
bios_disk.cpp:765:66: warning: taking address of packed member of ‘direntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
765 | uint32_t numClusters = (var_read(&e.entrysize) + bytesPerCluster - 1) / bytesPerCluster;
| ^~~~~~~~~~~~
bios_disk.cpp:867:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
867 | var_write(&bootsec.reservedsectors, reservedSectors);
| ^~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:869:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
869 | var_write(&bootsec.totalsectorcount, 0); // 16 bit field is 0, actual value is in totalsecdword
| ^~~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:871:66: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
871 | var_write(&bootsec.sectorspertrack, IS_PC98_ARCH ? sasi.sectors : SECTORSPERTRACK);
bios_disk.cpp:871:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
871 | var_write(&bootsec.sectorspertrack, IS_PC98_ARCH ? sasi.sectors : SECTORSPERTRACK);
| ^~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:872:60: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
872 | var_write(&bootsec.headcount, IS_PC98_ARCH ? sasi.surfaces : HEADCOUNT);
bios_disk.cpp:872:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
872 | var_write(&bootsec.headcount, IS_PC98_ARCH ? sasi.surfaces : HEADCOUNT);
| ^~~~~~~~~~~~~~~~~~
bios_disk.cpp:873:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
873 | var_write(&bootsec.hiddensectorcount, IS_PC98_ARCH ? sect_boot_pc98 : SECT_BOOT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:874:27: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
874 | var_write(&bootsec.totalsecdword, partSize);
| ^~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:879:35: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
879 | var_write(&bootsec.rootdirentries, (uint16_t)root.size());
| ^~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:880:35: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
880 | var_write(&bootsec.sectorsperfat, (uint16_t)sectorsPerFat);
| ^~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp: In function ‘void updateFloppyDPT()’:
bios_disk.cpp:1241:26: warning: unused variable ‘tmpheads’ [-Wunused-variable]
1241 | uint32_t tmpheads = 2, tmpcyl = 80, tmpsect = 18, tmpsize = 512;
| ^~~~~~~~
bios_disk.cpp:1241:40: warning: unused variable ‘tmpcyl’ [-Wunused-variable]
1241 | uint32_t tmpheads = 2, tmpcyl = 80, tmpsect = 18, tmpsize = 512;
| ^~~~~~
bios_disk.cpp: In member function ‘void imageDisk::Set_GeometryForHardDisk()’:
bios_disk.cpp:1805:55: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1805 | bootbuffer.sectorspertrack = var_read(&bootbuffer.sectorspertrack);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp:1806:49: warning: taking address of packed member of ‘bootstrap’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1806 | bootbuffer.headcount = var_read(&bootbuffer.headcount);
| ^~~~~~~~~~~~~~~~~~~~~
bios_vhd.cpp: In member function ‘uint32_t imageDiskVHD::GetInfo(VHDInfo*)’:
bios_vhd.cpp:960:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
960 | for(int i = 0; i < info->totalBlocks; i++) {
| ~~^~~~~~~~~~~~~~~~~~~
bios_vhd.cpp: In static member function ‘static void imageDiskVHD::DetectGeometry(Bitu*, uint64_t)’:
bios_vhd.cpp:1099:14: warning: variable ‘cylinders’ set but not used [-Wunused-but-set-variable]
1099 | uint32_t cylinders;
| ^~~~~~~~~
bios_vhd.cpp: In static member function ‘static uint64_t imageDiskVHD::scanMBR(uint8_t*, Bitu*, uint64_t)’:
bios_vhd.cpp:1179:31: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
1179 | c = (unsigned)*(part + 2) & 0xC0 | *(part + 3);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
bios_vhd.cpp: In function ‘char* calc_relative_path(const char*, const char*)’:
bios_vhd.cpp:80:13: warning: ignoring return value of ‘char* realpath(const char*, char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
80 | realpath(base, abs_base);
| ~~~~~~~~^~~~~~~~~~~~~~~~
bios_vhd.cpp:81:13: warning: ignoring return value of ‘char* realpath(const char*, char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
81 | realpath(child, abs_child);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~
bios_vhd.cpp: In static member function ‘static uint32_t imageDiskVHD::CreateDifferencing(const char*, const char*)’:
bios_vhd.cpp:853:13: warning: ignoring return value of ‘char* realpath(const char*, char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
853 | realpath(basename, absBasePathName);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
bios_disk.cpp: In constructor ‘fatFromDOSDrive::fatFromDOSDrive(DOS_Drive*, uint32_t, int)’:
bios_disk.cpp:801:20: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
801 | strncpy(pe.name, "MS-DOS ", 16);
| ^
messages.cpp: In function ‘void LoadMessageFile(const char*)’:
messages.cpp:358:10: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
358 | bool res = true;
| ^~~
programs.cpp: In member function ‘bool Program::EraseEnv()’:
programs.cpp:604:16: warning: unused variable ‘nsl’ [-Wunused-variable]
604 | size_t nsl = 0,el = 0,needs;
| ^~~
programs.cpp:604:24: warning: unused variable ‘el’ [-Wunused-variable]
604 | size_t nsl = 0,el = 0,needs;
| ^~
programs.cpp:604:31: warning: unused variable ‘needs’ [-Wunused-variable]
604 | size_t nsl = 0,el = 0,needs;
| ^~~~~
In file included from /usr/include/c++/15.2.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/include/c++/15.2.0/bits/allocator.h:46,
from /usr/include/c++/15.2.0/bits/stl_tree.h:66,
from /usr/include/c++/15.2.0/map:64,
from ../../include/dosbox.h:29,
from messages.cpp:23:
In member function ‘void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = std::__cxx11::basic_string]’,
inlined from ‘static void std::allocator_traits >::deallocate(allocator_type&, pointer, size_type) [with _Tp = std::__cxx11::basic_string]’ at /usr/include/c++/15.2.0/bits/alloc_traits.h:649:23,
inlined from ‘void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(pointer, std::size_t) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_vector.h:396:19,
inlined from ‘void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(pointer, std::size_t) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_vector.h:392:7,
inlined from ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_vector.h:375:15,
inlined from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_vector.h:805:7,
inlined from ‘FILE* testLoadLangFile(const char*)’ at messages.cpp:327:1:
/usr/include/c++/15.2.0/bits/new_allocator.h:172:66: warning: ‘void operator delete(void*, std::size_t)’ called on pointer ‘__result’ with nonzero offset 32 [-Wfree-nonheap-object]
172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
| ^
messages.cpp: In function ‘FILE* testLoadLangFile(const char*)’:
messages.cpp:296:7: note: declared here
296 | FILE* testLoadLangFile(const char* fname) {
| ^~~~~~~~~~~~~~~~
programs.cpp: In member function ‘virtual void CONFIG::Run()’:
programs.cpp:2478:66: warning: unused variable ‘ticks’ [-Wunused-variable]
2478 | uint32_t ticks=mem_readd(BIOS_TIMER);
| ^~~~~
In file included from /usr/include/c++/15.2.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/include/c++/15.2.0/bits/allocator.h:46,
from /usr/include/c++/15.2.0/bits/stl_tree.h:66,
from /usr/include/c++/15.2.0/map:64,
from ../../include/dosbox.h:29,
from setup.cpp:20:
In member function ‘void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = std::_List_node >]’,
inlined from ‘static void std::allocator_traits >::deallocate(allocator_type&, pointer, size_type) [with _Tp = std::_List_node >]’ at /usr/include/c++/15.2.0/bits/alloc_traits.h:649:23,
inlined from ‘void std::__cxx11::_List_base<_Tp, _Alloc>::_M_put_node(_Node_ptr) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_list.h:820:32,
inlined from ‘void std::__cxx11::_List_base<_Tp, _Alloc>::_M_destroy_node(_Node_ptr) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_list.h:855:19,
inlined from ‘void std::__cxx11::list<_Tp, _Allocator>::_M_erase(iterator) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/stl_list.h:2486:23,
inlined from ‘std::__cxx11::list<_Tp, _Allocator>::iterator std::__cxx11::list<_Tp, _Allocator>::erase(const_iterator) [with _Tp = std::__cxx11::basic_string; _Alloc = std::allocator >]’ at /usr/include/c++/15.2.0/bits/list.tcc:153:15,
inlined from ‘bool CommandLine::GetOpt(std::string&)’ at setup.cpp:1595:56:
/usr/include/c++/15.2.0/bits/new_allocator.h:172:66: warning: ‘void operator delete(void*, std::size_t)’ called on pointer ‘’ with nonzero offset 48 [-Wfree-nonheap-object]
172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
| ^
shell_misc.cpp: In function ‘uint16_t GetLastCount(char*, uint16_t)’:
shell_misc.cpp:350:65: warning: comparison of integer expressions of different signedness: ‘char’ and ‘unsigned int’ [-Wsign-compare]
350 | if (IS_PC98_ARCH && line[pos-1] == 0xFFFFFF86) {
| ~~~~~~~~~~~~^~~~~~~~~~~~~
shell_misc.cpp: In function ‘uint16_t GetRemoveCount(char*, uint16_t)’:
shell_misc.cpp:378:65: warning: comparison of integer expressions of different signedness: ‘char’ and ‘unsigned int’ [-Wsign-compare]
378 | if (IS_PC98_ARCH && line[pos-1] == 0xFFFFFF86) {
| ~~~~~~~~~~~~^~~~~~~~~~~~~
shell_cmds.cpp: In function ‘const char* GetCmdName(int)’:
shell_cmds.cpp:143:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
143 | return i>n?NULL:cmd_list[i].name;
| ~^~
shell_cmds.cpp: In function ‘bool doDir(DOS_Shell*, char*, DOS_DTA, char*, Bitu, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)’:
shell_cmds.cpp:1744:76: warning: comparison of integer expressions of different signedness: ‘Bitu’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
1744 | if (p_count%GetPauseCount()