Void cast to silence -Wunused-parameter error
diff --git a/runtime/cpp/emboss_prelude.h b/runtime/cpp/emboss_prelude.h
index 463f0fa..a47b8b5 100644
--- a/runtime/cpp/emboss_prelude.h
+++ b/runtime/cpp/emboss_prelude.h
@@ -752,7 +752,11 @@
buffer_.WriteUInt(ConvertToUInt(value));
return true;
}
- static constexpr bool CouldWriteValue(ValueType value) { return true; }
+ static constexpr bool CouldWriteValue(ValueType value) {
+ // Avoid unused parameters error:
+ static_cast<void>(value);
+ return true;
+ }
void UncheckedWrite(ValueType value) const {
buffer_.UncheckedWriteUInt(ConvertToUInt(value));
}