diff options
Diffstat (limited to 'emulator.cpp')
-rw-r--r-- | emulator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emulator.cpp b/emulator.cpp index de9be02..7b2e8a8 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -216,6 +216,7 @@ static std::string CreateResponse( constexpr size_t value_size = std::string_view("12345678").length(); char value[value_size + 1]{}; const int ret = snprintf(value, value_size + 1, "%08x", state.registers[i]); + (void) ret; assert(ret == value_size); result += std::string(value, value_size); } @@ -244,6 +245,7 @@ static std::string CreateResponse( constexpr size_t value_size = std::string_view("12345678").length(); char value_str[value_size + 1]{}; const int ret = snprintf(value_str, value_size + 1, "%08x", value); + (void) ret; assert(ret == value_size); return std::string(value_str, value_size); } |