From 6d41a1adb9a34d81c63945d49c568102d4906ef8 Mon Sep 17 00:00:00 2001 From: blockparty Date: Fri, 22 Nov 2019 05:59:55 -0600 Subject: [PATCH] Suppress unused variable warning --- toml/combinator.hpp | 1 + 1 file changed, 1 insertion(+) 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()); }