diff --git a/toml/combinator.hpp b/toml/combinator.hpp index 1c6ce25..aa82012 100644 --- a/toml/combinator.hpp +++ b/toml/combinator.hpp @@ -45,6 +45,7 @@ inline std::string show_char(const char c) buf.fill('\0'); const auto r = std::snprintf( buf.data(), buf.size(), "0x%02x", static_cast(c) & 0xFF); + (void) r; // Unused variable warning assert(r == static_cast(buf.size()) - 1); return std::string(buf.data()); }