summaryrefslogtreecommitdiffstats
path: root/Source/cmMessenger.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-10-18 14:01:05 (GMT)
committerSean McBride <sean@rogue-research.com>2021-10-25 16:27:09 (GMT)
commit1cf14f8c03be76f39e60ccad5049a6f2cd00aa04 (patch)
tree1cdcd647478e605952ddf4e1f1591715384e3c2c /Source/cmMessenger.cxx
parent319944b3d289871c4cd21ee11aba1f5785d4b626 (diff)
downloadCMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.zip
CMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.tar.gz
CMake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.tar.bz2
Source: fix many -Wmissing-prototypes warnings by marking functions static
Diffstat (limited to 'Source/cmMessenger.cxx')
-rw-r--r--Source/cmMessenger.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMessenger.cxx b/Source/cmMessenger.cxx
index 1cb638a..b898d22 100644
--- a/Source/cmMessenger.cxx
+++ b/Source/cmMessenger.cxx
@@ -102,7 +102,7 @@ static int getMessageColor(MessageType t)
}
}
-void printMessageText(std::ostream& msg, std::string const& text)
+static void printMessageText(std::ostream& msg, std::string const& text)
{
msg << ":\n";
cmDocumentationFormatter formatter;
@@ -110,7 +110,7 @@ void printMessageText(std::ostream& msg, std::string const& text)
formatter.PrintFormatted(msg, text.c_str());
}
-void displayMessage(MessageType t, std::ostringstream& msg)
+static void displayMessage(MessageType t, std::ostringstream& msg)
{
// Add a note about warning suppression.
if (t == MessageType::AUTHOR_WARNING) {