diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 89ea9559d..4d2dfe855 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2225,7 +2225,7 @@ bool cmake::IsMessageTypeVisible(cmake::MessageType t) return isVisible; } -bool cmake::PrintMessagePreamble(cmake::MessageType t, std::ostream& msg) +static bool printMessagePreamble(cmake::MessageType t, std::ostream& msg) { // Construct the message header. if (t == cmake::FATAL_ERROR) { @@ -2312,7 +2312,7 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text, } std::ostringstream msg; - if (!this->PrintMessagePreamble(t, msg)) { + if (!printMessagePreamble(t, msg)) { return; } diff --git a/Source/cmake.h b/Source/cmake.h index 266c33d3d..f6d335fe8 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -500,8 +500,6 @@ private: * warning and error output CMake variables, in the cache. */ bool IsMessageTypeVisible(cmake::MessageType t); - - bool PrintMessagePreamble(cmake::MessageType t, std::ostream& msg); }; #define CMAKE_STANDARD_OPTIONS_TABLE \