Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: #8919
  • Loading branch information
bnoordhuis committed Oct 21, 2016
commit 7450fdcb491fca1aefbc047ee859d213a476ff00
2 changes: 1 addition & 1 deletion src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down