diff options
-rw-r--r-- | scripts/genie.lua | 5 | ||||
-rw-r--r-- | src/devices/cpu/arm7/arm7drc.hxx | 11 | ||||
-rw-r--r-- | src/devices/cpu/arm7/arm7tdrc.hxx | 1 | ||||
-rw-r--r-- | src/emu/dirtc.h | 4 | ||||
-rw-r--r-- | src/emu/http.cpp | 4 | ||||
-rw-r--r-- | src/lib/util/aviio.cpp | 2 | ||||
-rw-r--r-- | src/lib/util/disasmintf.h | 2 | ||||
-rw-r--r-- | src/lib/util/un7z.cpp | 3 | ||||
-rw-r--r-- | src/mame/audio/vboy.cpp | 2 | ||||
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 2 | ||||
-rw-r--r-- | src/tools/srcclean.cpp | 2 |
11 files changed, 18 insertions, 20 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index ed289f73396..096f1195681 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1017,6 +1017,11 @@ end "-Wno-ignored-qualifiers" } end + if (version >= 60000) then + buildoptions { + "-Wno-pragma-pack" -- clang 6.0 complains when the packing change lifetime is not contained within a header file. + } + end else if (version < 50000) then print("GCC version 5.0 or later needed") diff --git a/src/devices/cpu/arm7/arm7drc.hxx b/src/devices/cpu/arm7/arm7drc.hxx index b26f56bfaee..621c0a7f0f8 100644 --- a/src/devices/cpu/arm7/arm7drc.hxx +++ b/src/devices/cpu/arm7/arm7drc.hxx @@ -471,15 +471,6 @@ void arm7_cpu_device::cfunc_unimplemented() void arm7_cpu_device::static_generate_entry_point() { drcuml_state *drcuml = m_impstate.drcuml; - uml::code_label nodabt; - uml::code_label nofiq; - uml::code_label noirq; - uml::code_label irq32; - uml::code_label nopabd; - uml::code_label nound; - uml::code_label swi32; - uml::code_label irqadjust; - uml::code_label done; drcuml_block &block(drcuml->begin_block(110)); @@ -1160,8 +1151,6 @@ void arm7_cpu_device::generate_update_cycles(drcuml_block &block, compiler_state /* check full interrupts if pending */ if (compiler.checkints) { - uml::code_label skip; - compiler.checkints = false; UML_CALLH(block, *m_impstate.check_irq); } diff --git a/src/devices/cpu/arm7/arm7tdrc.hxx b/src/devices/cpu/arm7/arm7tdrc.hxx index 5162674bfb9..4fb16bb7562 100644 --- a/src/devices/cpu/arm7/arm7tdrc.hxx +++ b/src/devices/cpu/arm7/arm7tdrc.hxx @@ -470,7 +470,6 @@ void arm7_cpu_device::drctg04_00_04(drcuml_block &block, compiler_state &compile uint32_t rs = (op & THUMB_ADDSUB_RS) >> THUMB_ADDSUB_RS_SHIFT; uint32_t rd = (op & THUMB_ADDSUB_RD) >> THUMB_ADDSUB_RD_SHIFT; uml::code_label skip; - uml::code_label offsg32; uml::code_label offs32; UML_MOV(block, uml::I0, DRC_REG(rd)); diff --git a/src/emu/dirtc.h b/src/emu/dirtc.h index 64069f58923..76658b12a9f 100644 --- a/src/emu/dirtc.h +++ b/src/emu/dirtc.h @@ -56,8 +56,8 @@ protected: static u8 convert_to_bcd(int val); static int bcd_to_integer(u8 val); - void set_clock_register(int register, int value); - int get_clock_register(int register); + void set_clock_register(int reg, int value); + int get_clock_register(int reg); void clock_updated(); void advance_seconds(); diff --git a/src/emu/http.cpp b/src/emu/http.cpp index 899378001fa..c6a8bc011f0 100644 --- a/src/emu/http.cpp +++ b/src/emu/http.cpp @@ -132,6 +132,8 @@ public: m_path_end = m_query == std::string::npos ? m_query_end : m_query; } + virtual ~http_request_impl() = default; + /** Retrieves the requested resource. */ virtual const std::string get_resource() { // The entire resource: path, query and fragment. @@ -190,6 +192,8 @@ struct http_response_impl : public http_manager::http_response { http_response_impl(std::shared_ptr<webpp::Response> response) : m_response(response) { } + virtual ~http_response_impl() = default; + /** Sets the HTTP status to be returned to the client. */ virtual void set_status(int status) { m_status = status; diff --git a/src/lib/util/aviio.cpp b/src/lib/util/aviio.cpp index 4a493c2b89b..47c8023d3a0 100644 --- a/src/lib/util/aviio.cpp +++ b/src/lib/util/aviio.cpp @@ -284,7 +284,6 @@ public: , m_width(0) , m_height(0) , m_depth(0) - , m_interlace(0) , m_huffyuv() , m_channels(0) , m_samplebits(0) @@ -396,7 +395,6 @@ private: std::uint32_t m_width; /* width of video */ std::uint32_t m_height; /* height of video */ std::uint32_t m_depth; /* depth of video */ - std::uint8_t m_interlace; /* interlace parameters */ std::unique_ptr<huffyuv_data const> m_huffyuv; /* huffyuv decompression data */ std::uint16_t m_channels; /* audio channels */ diff --git a/src/lib/util/disasmintf.h b/src/lib/util/disasmintf.h index bf4022c5a01..78c77a9abb2 100644 --- a/src/lib/util/disasmintf.h +++ b/src/lib/util/disasmintf.h @@ -21,6 +21,8 @@ namespace util { class disasm_interface { public: + virtual ~disasm_interface() = default; + // independence from emu.h using u8 = osd::u8; using u16 = osd::u16; diff --git a/src/lib/util/un7z.cpp b/src/lib/util/un7z.cpp index 7af3e7f78ce..700d26169d9 100644 --- a/src/lib/util/un7z.cpp +++ b/src/lib/util/un7z.cpp @@ -96,7 +96,8 @@ public: typedef std::unique_ptr<m7z_file_impl> ptr; m7z_file_impl(const std::string &filename); - ~m7z_file_impl() + + virtual ~m7z_file_impl() { if (m_out_buffer) IAlloc_Free(&m_alloc_imp, m_out_buffer); diff --git a/src/mame/audio/vboy.cpp b/src/mame/audio/vboy.cpp index 6a32b4f7305..4b6d7d73fa0 100644 --- a/src/mame/audio/vboy.cpp +++ b/src/mame/audio/vboy.cpp @@ -184,7 +184,7 @@ static const int8_t outLvlTbl[16][16] = { { 0, 2, 4, 6, 8, 10, 12, 14, 16, 17, 19, 21, 23, 25, 27, 29} }; -static inline uint8_t mgetb(register uint8_t *ptr) { return *ptr; } +static inline uint8_t mgetb(uint8_t *ptr) { return *ptr; } static inline void mputb(uint8_t *ptr, int8_t data) { *ptr = data; } //************************************************************************** diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 7a5f098e5b4..3e6abc628fa 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -1236,8 +1236,6 @@ void debug_imgui::draw_create_dialog(const char* label) void debug_imgui::draw_console() { - rgb_t bg, fg; - rgb_t base(0xe6, 0xff, 0xff, 0xff); ImGuiWindowFlags flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse; ImGui::SetNextWindowSize(ImVec2(view_main_regs->width + view_main_disasm->width,view_main_disasm->height + view_main_console->height + ImGui::GetTextLineHeight()*3),ImGuiCond_Once); diff --git a/src/tools/srcclean.cpp b/src/tools/srcclean.cpp index 94b118b4018..f42e3bf83a7 100644 --- a/src/tools/srcclean.cpp +++ b/src/tools/srcclean.cpp @@ -88,6 +88,8 @@ public: VMS }; + virtual ~cleaner_base() = default; + template <typename InputIt> void process(InputIt begin, InputIt end); void finalise(); |