mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fix some clang pedantic warnings. (nw)
This commit is contained in:
parent
4dfd26b248
commit
a841ff553e
@ -168,7 +168,7 @@ maketree: $(sort $(OBJDIRS))
|
|||||||
.PHONY: clang mingw doc
|
.PHONY: clang mingw doc
|
||||||
|
|
||||||
clang:
|
clang:
|
||||||
$(MAKE) CC=clang++ LD=clang++ CEXTRAFLAGS="-Weverything -Werror -Wno-padded -Wno-weak-vtables -Wno-missing-variable-declarations -Wconversion -Wno-c++98-compat -Wno-float-equal -Wno-global-constructors -Wno-c++98-compat-pedantic -Wno-format-nonliteral -Wno-weak-template-vtables -Wno-exit-time-destructors"
|
$(MAKE) CC=clang++ LD=clang++ CEXTRAFLAGS="-march=native -Weverything -Werror -Wno-padded -Wno-weak-vtables -Wno-missing-variable-declarations -Wconversion -Wno-c++98-compat -Wno-float-equal -Wno-global-constructors -Wno-c++98-compat-pedantic -Wno-format-nonliteral -Wno-weak-template-vtables -Wno-exit-time-destructors"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Mostly done: -Wno-weak-vtables -Wno-cast-align
|
# Mostly done: -Wno-weak-vtables -Wno-cast-align
|
||||||
|
@ -110,11 +110,11 @@ namespace netlist
|
|||||||
|
|
||||||
inline NETLIB_FUNC_VOID(Am2847_shifter, shift, (void))
|
inline NETLIB_FUNC_VOID(Am2847_shifter, shift, (void))
|
||||||
{
|
{
|
||||||
unsigned out = m_buffer[0] & 1;
|
uint32_t out = m_buffer[0] & 1;
|
||||||
uint32_t in = (m_RC() ? out : m_IN());
|
uint32_t in = (m_RC() ? out : m_IN());
|
||||||
for (std::size_t i=0; i < 5; i++)
|
for (std::size_t i=0; i < 5; i++)
|
||||||
{
|
{
|
||||||
uint16_t shift_in = (i == 4) ? in : m_buffer[i + 1];
|
uint32_t shift_in = (i == 4) ? in : m_buffer[i + 1];
|
||||||
m_buffer[i] >>= 1;
|
m_buffer[i] >>= 1;
|
||||||
m_buffer[i] |= shift_in << 15;
|
m_buffer[i] |= shift_in << 15;
|
||||||
}
|
}
|
||||||
|
@ -689,7 +689,7 @@ void detail::net_t::rebuild_list()
|
|||||||
{
|
{
|
||||||
/* rebuild m_list */
|
/* rebuild m_list */
|
||||||
|
|
||||||
unsigned cnt = 0;
|
int cnt = 0;
|
||||||
m_list_active.clear();
|
m_list_active.clear();
|
||||||
for (auto & term : m_core_terms)
|
for (auto & term : m_core_terms)
|
||||||
if (term->state() != logic_t::STATE_INP_PASSIVE)
|
if (term->state() != logic_t::STATE_INP_PASSIVE)
|
||||||
|
@ -235,7 +235,7 @@ namespace netlist
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
logic_family_desc_t();
|
logic_family_desc_t();
|
||||||
~logic_family_desc_t();
|
virtual ~logic_family_desc_t();
|
||||||
|
|
||||||
virtual plib::owned_ptr<devices::nld_base_d_to_a_proxy> create_d_a_proxy(netlist_t &anetlist, const pstring &name,
|
virtual plib::owned_ptr<devices::nld_base_d_to_a_proxy> create_d_a_proxy(netlist_t &anetlist, const pstring &name,
|
||||||
logic_output_t *proxied) const = 0;
|
logic_output_t *proxied) const = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user