mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-04-03 17:25:59 +02:00
cmake: Always treat warnings as errors
Enable cast warnings in gcc and clang and always treat warnings as errors. GetWordCount now returns std::size_t for simplicity and the word count is asserted and casted in WordCount (now called CalculateTotalWords. Silence warnings.
This commit is contained in:
@@ -19,8 +19,8 @@ void LiteralString::Fetch(Stream& stream) const {
|
||||
stream.Write(string);
|
||||
}
|
||||
|
||||
u16 LiteralString::GetWordCount() const noexcept {
|
||||
return static_cast<u16>(string.size() / 4 + 1);
|
||||
std::size_t LiteralString::GetWordCount() const noexcept {
|
||||
return string.size() / 4 + 1;
|
||||
}
|
||||
|
||||
bool LiteralString::operator==(const Operand& other) const noexcept {
|
||||
|
||||
Reference in New Issue
Block a user