diff options
author | smf- <smf-@users.noreply.github.com> | 2018-07-07 11:25:52 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-07-07 11:28:01 +0100 |
commit | b747b711bb021d0bb550f150e62d3f7dfe6754b2 (patch) | |
tree | 3d5f00235a642eda7b0bc4aca35a61bfbf00bb7b /src/lib/util | |
parent | 32ee215a388954d6da30bf408f03e724ee1ff96f (diff) |
fix building with clang 6.0.1 (nw)
Diffstat (limited to 'src/lib/util')
-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 |
3 files changed, 4 insertions, 3 deletions
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); |