diff --git a/tests/cpp17/stringify_util.h b/tests/cpp17/stringify_util.h index dc9472240..e2e7e2230 100644 --- a/tests/cpp17/stringify_util.h +++ b/tests/cpp17/stringify_util.h @@ -83,6 +83,8 @@ std::string StringifyTableOrStructImpl(const FBS &fbs, template std::string StringifyTableOrStruct(const FBS &fbs, const std::string &indent) { + (void)fbs; + (void)indent; static constexpr size_t field_count = FBS::Traits::fields_number; std::string out; if constexpr (field_count > 0) { @@ -125,6 +127,7 @@ template std::string StringifyArithmeticType(T val) { template std::optional StringifyFlatbufferValue(T &&val, const std::string &indent) { + (void)indent; constexpr bool is_pointer = std::is_pointer_v>; if constexpr (is_pointer) { if (val == nullptr) return std::nullopt; // Field is absent.