From 7450fdcb491fca1aefbc047ee859d213a476ff00 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 21 Oct 2016 12:12:48 +0200 Subject: [PATCH] src: fix -Wunused-function warning Fix the following compile-time warning: ../src/inspector_agent.cc:175:19: warning: 'const string node::inspector::{anonymous}::to_string(uint64_t)' defined but not used [-Wunused-function] const std::string to_string(uint64_t number) { Refs: https://github.com/nodejs/node/pull/8919 --- src/inspector_agent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 1cbaa92b9abcea..9bbbeeac1bffd6 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -172,7 +172,7 @@ std::string GenerateID() { } // std::to_string is not available on Smart OS and ARM flavours -const std::string to_string(uint64_t number) { +inline const std::string to_string(uint64_t number) { std::ostringstream result; result << number; return result.str();