From d0c0d161102c8a11a14978e72b695d36a2a5917a Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Tue, 15 Jan 2019 15:21:02 +0100 Subject: [PATCH] :rotating_light: fixed unused variable warning Since 6503e83e749e18e0749b1c65ab940a89967ed910 "Improve dump_integer performance by implementing a more efficient int2ascii" an unused variable and thus a warning existed. --- include/nlohmann/detail/output/serializer.hpp | 1 - single_include/nlohmann/json.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index cdf74f78..4f7e1ede 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -630,7 +630,6 @@ class serializer // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg - const auto buffer_end = buffer_ptr; while (abs_value >= 100) { const auto digits_index = static_cast((abs_value % 100)); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 70b6c8a8..ef4b0cd0 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -11520,7 +11520,6 @@ class serializer // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg - const auto buffer_end = buffer_ptr; while (abs_value >= 100) { const auto digits_index = static_cast((abs_value % 100));