More GCC 8 (nw)

This commit is contained in:
arbee 2018-05-01 22:04:06 -04:00
parent 4f10cca061
commit 45977d9baa
3 changed files with 3 additions and 2 deletions

View File

@ -1039,6 +1039,7 @@ end
buildoptions {
"-Wno-format-overflow", -- try machine/bfm_sc45_helper.cpp in GCC 8.0.1, among others
"-Wno-stringop-truncation", -- ImGui again
"-Wno-stringop-overflow", -- formats/victor9k_dsk.cpp bugs the compiler
}
buildoptions_cpp {
"-Wno-class-memaccess", -- many instances in ImGui and BGFX

View File

@ -373,7 +373,7 @@ bool hpi_format::get_next_sector(const uint8_t *bitstream , int bitstream_size ,
}
}
// Then for DATA block
int data_pos;
int data_pos = 0;
block = get_next_id_n_block(bitstream , bitstream_size , pos , data_pos);
if (block.size() == 0) {
return false;

View File

@ -1678,7 +1678,7 @@ void rainbow_state::hdc_reset()
// Return 'hard_disk_file' object for harddisk 1 (fixed).
// < nullptr if geometry is insane or other errors occured >
hard_disk_file *(rainbow_state::rainbow_hdc_file(int drv))
hard_disk_file *rainbow_state::rainbow_hdc_file(int drv)
{
m_hdc_drive_ready = false;