Open kusayuzayushko opened 7 years ago
New gcc seem not to allow switch cases to fall through.
A possible fix could be adding __attribute__((fallthrough));
to the switch statements that it happens. This happens in two files:
In line 784 add: __attribute__((fallthrough));
, so this should look like:
// stack: <address> <function_id>
m_context << Instruction::POP;
break;
}
__attribute__((fallthrough)); // <- this is added
}
default:
In line 1046 add: __attribute__((fallthrough));
, so this should look like:
// not found in contract, search in members inherited from address
alsoSearchInteger = true;
}
if (!alsoSearchInteger)
break;
__attribute__((fallthrough)); // <- this is added
}
case Type::Category::Integer:
I will make issue on solidity shortly.
Hope this helps.
Any ideas how to fix it?